Package com.microsoft.azure.kusto.ingest
Class IngestClientBase
- java.lang.Object
-
- com.microsoft.azure.kusto.ingest.IngestClientBase
-
- All Implemented Interfaces:
IngestClient,Closeable,AutoCloseable
- Direct Known Subclasses:
ManagedStreamingIngestClient,QueuedIngestClientImpl,StreamingIngestClient
public abstract class IngestClientBase extends Object implements IngestClient
-
-
Constructor Summary
Constructors Constructor Description IngestClientBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetClientType()protected Map<String,String>getIngestionTraceAttributes(TraceableAttributes sourceInfo, TraceableAttributes ingestionProperties)IngestionResultingestFromBlob(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties)Ingest data from a blob storage into Kusto database.protected abstract IngestionResultingestFromBlobImpl(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties)Ingest data from a blob storage into Kusto database.IngestionResultingestFromFile(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties)Ingest data from a file into Kusto database.protected abstract IngestionResultingestFromFileImpl(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties)IngestionResultingestFromResultSet(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties)Ingest data from a Result Set into Kusto database.protected abstract IngestionResultingestFromResultSetImpl(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties)Ingest data from a Result Set into Kusto database.IngestionResultingestFromStream(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties)Ingest data from an input stream, into Kusto database.protected abstract IngestionResultingestFromStreamImpl(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties)Ingest data from an input stream, into Kusto database.
-
-
-
Method Detail
-
ingestFromFileImpl
protected abstract IngestionResult ingestFromFileImpl(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
-
ingestFromFile
public IngestionResult ingestFromFile(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClientIngest data from a file into Kusto database.
This method ingests the data from a given file, described infileSourceInfo, into Kusto database, according to the properties mentioned iningestionProperties- Specified by:
ingestFromFilein interfaceIngestClient- Parameters:
fileSourceInfo- The specific SourceInfo to be ingestedingestionProperties- Settings used to customize the ingestion operation- Returns:
IngestionResultobject including the ingestion result- Throws:
IngestionClientException- An exception originating from a client activityIngestionServiceException- An exception returned from the service- See Also:
FileSourceInfo,IngestionProperties
-
ingestFromBlobImpl
protected abstract IngestionResult ingestFromBlobImpl(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Ingest data from a blob storage into Kusto database.
This method ingests the data from a given blob, described inblobSourceInfo, into Kusto database, according to the properties mentioned iningestionProperties- Parameters:
blobSourceInfo- The specific SourceInfo to be ingestedingestionProperties- Settings used to customize the ingestion operation- Returns:
IngestionResultobject including the ingestion result- Throws:
IngestionClientException- An exception originating from a client activityIngestionServiceException- An exception returned from the service- See Also:
BlobSourceInfo,IngestionProperties
-
ingestFromBlob
public IngestionResult ingestFromBlob(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClientIngest data from a blob storage into Kusto database.
This method ingests the data from a given blob, described inblobSourceInfo, into Kusto database, according to the properties mentioned iningestionProperties- Specified by:
ingestFromBlobin interfaceIngestClient- Parameters:
blobSourceInfo- The specific SourceInfo to be ingestedingestionProperties- Settings used to customize the ingestion operation- Returns:
IngestionResultobject including the ingestion result- Throws:
IngestionClientException- An exception originating from a client activityIngestionServiceException- An exception returned from the service- See Also:
BlobSourceInfo,IngestionProperties
-
ingestFromResultSetImpl
protected abstract IngestionResult ingestFromResultSetImpl(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Ingest data from a Result Set into Kusto database.
This method ingests the data from a given Result Set, described inresultSetSourceInfo, into Kusto database, according to the properties mentioned iningestionPropertiesIngesting from ResultSet is equivalent to ingesting from a csv stream. The DataFormat should be empty or set to "csv", and the mapping, should it be provided, should be csv mapping.
- Parameters:
resultSetSourceInfo- The specific SourceInfo to be ingestedingestionProperties- Settings used to customize the ingestion operation- Returns:
IngestionResultobject including the ingestion result- Throws:
IngestionClientException- An exception originating from a client activityIngestionServiceException- An exception returned from the service- See Also:
ResultSetSourceInfo,IngestionProperties
-
ingestFromResultSet
public IngestionResult ingestFromResultSet(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClientIngest data from a Result Set into Kusto database.
This method ingests the data from a given Result Set, described inresultSetSourceInfo, into Kusto database, according to the properties mentioned iningestionPropertiesIngesting from ResultSet is equivalent to ingesting from a csv stream. The DataFormat should be empty or set to "csv", and the mapping, should it be provided, should be csv mapping.
- Specified by:
ingestFromResultSetin interfaceIngestClient- Parameters:
resultSetSourceInfo- The specific SourceInfo to be ingestedingestionProperties- Settings used to customize the ingestion operation- Returns:
IngestionResultobject including the ingestion result- Throws:
IngestionClientException- An exception originating from a client activityIngestionServiceException- An exception returned from the service- See Also:
ResultSetSourceInfo,IngestionProperties
-
ingestFromStreamImpl
protected abstract IngestionResult ingestFromStreamImpl(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Ingest data from an input stream, into Kusto database.
This method ingests the data from a given input stream, described instreamSourceInfo, into Kusto database, according to the properties mentioned iningestionProperties- Parameters:
streamSourceInfo- The specific SourceInfo to be ingestedingestionProperties- Settings used to customize the ingestion operation- Returns:
IngestionResultobject including the ingestion result- Throws:
IngestionClientException- An exception originating from a client activityIngestionServiceException- An exception returned from the service- See Also:
StreamSourceInfo,IngestionProperties
-
ingestFromStream
public IngestionResult ingestFromStream(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClientIngest data from an input stream, into Kusto database.
This method ingests the data from a given input stream, described instreamSourceInfo, into Kusto database, according to the properties mentioned iningestionProperties- Specified by:
ingestFromStreamin interfaceIngestClient- Parameters:
streamSourceInfo- The specific SourceInfo to be ingestedingestionProperties- Settings used to customize the ingestion operation- Returns:
IngestionResultobject including the ingestion result- Throws:
IngestionClientException- An exception originating from a client activityIngestionServiceException- An exception returned from the service- See Also:
StreamSourceInfo,IngestionProperties
-
getIngestionTraceAttributes
protected Map<String,String> getIngestionTraceAttributes(TraceableAttributes sourceInfo, TraceableAttributes ingestionProperties)
-
getClientType
protected abstract String getClientType()
-
-