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
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected StringgetClientType()IngestionResourceManagergetResourceManager()protected IngestionResultingestFromBlobImpl(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties)Ingest data from a blob storage into Kusto database.protected IngestionResultingestFromFileImpl(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties)protected IngestionResultingestFromResultSetImpl(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties)Ingest data from a Result Set into Kusto database.protected IngestionResultingestFromStreamImpl(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties)Ingest data from an input stream, into Kusto database.protected voidsetConnectionDataSource(String connectionDataSource)voidsetQueueRequestOptions(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-
Methods inherited from class com.microsoft.azure.kusto.ingest.IngestClientBase
getIngestionTraceAttributes, ingestFromBlob, ingestFromFile, ingestFromResultSet, ingestFromStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.kusto.ingest.IngestClient
ingestFromBlob, ingestFromFile, ingestFromResultSet, ingestFromStream
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
-
Method Detail
-
setQueueRequestOptions
public void setQueueRequestOptions(com.azure.storage.common.policy.RequestRetryOptions queueRequestOptions)
Description copied from interface:QueuedIngestClientSetter 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:
setQueueRequestOptionsin interfaceQueuedIngestClient- Parameters:
queueRequestOptions- - Options to use when creating QueueClient
-
getResourceManager
public IngestionResourceManager getResourceManager()
- Specified by:
getResourceManagerin interfaceQueuedIngestClient
-
ingestFromBlobImpl
protected IngestionResult ingestFromBlobImpl(BlobSourceInfo blobSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from class:IngestClientBaseIngest 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:
ingestFromBlobImplin classIngestClientBase- 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
-
ingestFromFileImpl
protected IngestionResult ingestFromFileImpl(FileSourceInfo fileSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
- Specified by:
ingestFromFileImplin classIngestClientBase- Throws:
IngestionClientExceptionIngestionServiceException
-
ingestFromStreamImpl
protected IngestionResult ingestFromStreamImpl(StreamSourceInfo streamSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from class:IngestClientBaseIngest 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:
ingestFromStreamImplin classIngestClientBase- 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
-
getClientType
protected String getClientType()
- Specified by:
getClientTypein classIngestClientBase
-
ingestFromResultSetImpl
protected IngestionResult ingestFromResultSetImpl(ResultSetSourceInfo resultSetSourceInfo, IngestionProperties ingestionProperties) throws IngestionClientException, IngestionServiceException
Description copied from class:IngestClientBaseIngest 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:
ingestFromResultSetImplin classIngestClientBase- 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
-
setConnectionDataSource
protected void setConnectionDataSource(String connectionDataSource)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-