public interface StreamingClient extends Closeable
| Modifier and Type | Method and Description |
|---|---|
KustoOperationResult |
execute(String command)
Execute the provided command against the default database.
|
KustoOperationResult |
executeStreamingIngest(String database,
String table,
InputStream stream,
ClientRequestProperties properties,
String streamFormat,
String mappingName,
boolean leaveOpen)
Ingest data from a given stream directly into Kusto database.
|
KustoOperationResult |
executeStreamingIngestFromBlob(String databaseName,
String tableName,
String blobUrl,
ClientRequestProperties clientRequestProperties,
String dataFormat,
String ingestionMappingReference) |
InputStream |
executeStreamingQuery(String command) |
InputStream |
executeStreamingQuery(String database,
String command) |
InputStream |
executeStreamingQuery(String database,
String command,
ClientRequestProperties properties)
Query directly from Kusto database using streaming output.
|
KustoOperationResult executeStreamingIngest(String database, String table, InputStream stream, ClientRequestProperties properties, String streamFormat, String mappingName, boolean leaveOpen) throws DataServiceException, DataClientException
Ingest data from a given stream directly into Kusto database.
This method ingests the data from a given stream directly into Kusto database, using streaming ingestion endpoint, with additional properties mentioned iningestionProperties
It is not recommended to use this method directly, but the StreamingIngestClient from the Ingest package.database - The target database to ingest totable - The target table to ingest tostream - An InputStream which holds the dataproperties - Additional request headers of the ingestion requeststreamFormat - The format of the data in the provided streammappingName - Pre-defined mapping reference. Required for Json and Avro formatsleaveOpen - Specifies if the given stream should be closed after reading or be left openKustoOperationResult object including the ingestion resultDataClientException - An exception originating from a client activityDataServiceException - An exception returned from the serviceInputStream executeStreamingQuery(String database, String command, ClientRequestProperties properties) throws DataServiceException, DataClientException
Query directly from Kusto database using streaming output.
This method queries the Kusto database into a stream, using streaming query endpoint, with additional properties mentioned iningestionPropertiesdatabase - The target database to querycommand - The command (query or admin command) to executeproperties - Additional request headers of the ingestion requestDataClientException - An exception originating from a client activityDataServiceException - An exception returned from the serviceInputStream executeStreamingQuery(String database, String command) throws DataServiceException, DataClientException
InputStream executeStreamingQuery(String command) throws DataServiceException, DataClientException
KustoOperationResult execute(String command) throws DataServiceException, DataClientException
Execute the provided command against the default database.
command - The command to executeKustoOperationResult object including the ingestion resultDataClientException - An exception originating from a client activityDataServiceException - An exception returned from the serviceKustoOperationResult executeStreamingIngestFromBlob(String databaseName, String tableName, String blobUrl, ClientRequestProperties clientRequestProperties, String dataFormat, String ingestionMappingReference) throws DataServiceException, DataClientException
Copyright © 2023. All rights reserved.