Package com.microsoft.azure.kusto.ingest
Class QueuedIngestClientImpl
- java.lang.Object
-
- com.microsoft.azure.kusto.ingest.IngestClientBase
-
- com.microsoft.azure.kusto.ingest.QueuedIngestClientImpl
-
- All Implemented Interfaces:
IngestClient
,QueuedIngestClient
,Closeable
,AutoCloseable
public class QueuedIngestClientImpl extends IngestClientBase implements QueuedIngestClient
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
IngestionResult
ingestFromBlob(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties)
Ingest data from a blob storage into Kusto database.IngestionResult
ingestFromFile(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties)
Ingest data from a file into Kusto database.IngestionResult
ingestFromResultSet(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties)
Ingest data from a Result Set into Kusto database.IngestionResult
ingestFromStream(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties)
Ingest data from an input stream, into Kusto database.protected void
setConnectionDataSource(String connectionDataSource)
void
setQueueRequestOptions(com.azure.storage.common.policy.RequestRetryOptions queueRequestOptions)
Setter for QueueRequestOptions used by the client on adding ingest message to the Azure queue, read here https://docs.microsoft.com/azure/data-explorer/kusto/api/netfx/about-kusto-ingest#ingest-client-flavors about Kusto queued ingestion
-
-
-
Method Detail
-
setQueueRequestOptions
public void setQueueRequestOptions(com.azure.storage.common.policy.RequestRetryOptions queueRequestOptions)
Description copied from interface:QueuedIngestClient
Setter for QueueRequestOptions used by the client on adding ingest message to the Azure queue, read here https://docs.microsoft.com/azure/data-explorer/kusto/api/netfx/about-kusto-ingest#ingest-client-flavors about Kusto queued ingestion- Specified by:
setQueueRequestOptions
in interfaceQueuedIngestClient
- Parameters:
queueRequestOptions
- - Options to use when creating QueueClient
-
ingestFromBlob
public IngestionResult ingestFromBlob(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClient
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
- Specified by:
ingestFromBlob
in interfaceIngestClient
- Parameters:
blobSourceInfo
- The specific SourceInfo to be ingestedingestionProperties
- Settings used to customize the ingestion operation- Returns:
IngestionResult
object including the ingestion result- Throws:
IngestionClientException
- An exception originating from a client activityIngestionServiceException
- An exception returned from the service- See Also:
BlobSourceInfo
,IngestionProperties
-
ingestFromFile
public IngestionResult ingestFromFile(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClient
Ingest 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:
ingestFromFile
in interfaceIngestClient
- Parameters:
fileSourceInfo
- The specific SourceInfo to be ingestedingestionProperties
- Settings used to customize the ingestion operation- Returns:
IngestionResult
object including the ingestion result- Throws:
IngestionClientException
- An exception originating from a client activityIngestionServiceException
- An exception returned from the service- See Also:
FileSourceInfo
,IngestionProperties
-
ingestFromStream
public IngestionResult ingestFromStream(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClient
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
- Specified by:
ingestFromStream
in interfaceIngestClient
- Parameters:
streamSourceInfo
- The specific SourceInfo to be ingestedingestionProperties
- Settings used to customize the ingestion operation- Returns:
IngestionResult
object including the ingestion result- Throws:
IngestionClientException
- An exception originating from a client activityIngestionServiceException
- An exception returned from the service- See Also:
StreamSourceInfo
,IngestionProperties
-
ingestFromResultSet
public IngestionResult ingestFromResultSet(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from interface:IngestClient
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 iningestionProperties
Ingesting 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:
ingestFromResultSet
in interfaceIngestClient
- Parameters:
resultSetSourceInfo
- The specific SourceInfo to be ingestedingestionProperties
- Settings used to customize the ingestion operation- Returns:
IngestionResult
object including the ingestion result- Throws:
IngestionClientException
- An exception originating from a client activityIngestionServiceException
- An exception returned from the service- See Also:
ResultSetSourceInfo
,IngestionProperties
-
setConnectionDataSource
protected void setConnectionDataSource(String connectionDataSource)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-