Package com.microsoft.azure.kusto.ingest
Class IngestionUtils
- java.lang.Object
-
- com.microsoft.azure.kusto.ingest.IngestionUtils
-
public class IngestionUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull StreamSourceInfo
fileToStream(FileSourceInfo fileSourceInfo, boolean resettable)
static @Nullable com.microsoft.azure.storage.OperationContext
httpClientPropertiesToOperationContext(@Nullable HttpClientProperties httpProperties)
Transforms our http client properties to aOperationContext
which is compatible with the Azure Storage SDK.static byte[]
readBytesFromInputStream(InputStream inputStream, int bytesToRead)
static @NotNull StreamSourceInfo
resultSetToStream(ResultSetSourceInfo resultSetSourceInfo)
-
-
-
Method Detail
-
fileToStream
@NotNull public static @NotNull StreamSourceInfo fileToStream(FileSourceInfo fileSourceInfo, boolean resettable) throws IngestionClientException, FileNotFoundException
-
resultSetToStream
@NotNull public static @NotNull StreamSourceInfo resultSetToStream(ResultSetSourceInfo resultSetSourceInfo) throws IOException, IngestionClientException
- Throws:
IOException
IngestionClientException
-
readBytesFromInputStream
public static byte[] readBytesFromInputStream(InputStream inputStream, int bytesToRead) throws IOException
- Throws:
IOException
-
httpClientPropertiesToOperationContext
@Nullable public static @Nullable com.microsoft.azure.storage.OperationContext httpClientPropertiesToOperationContext(@Nullable @Nullable HttpClientProperties httpProperties)
Transforms our http client properties to aOperationContext
which is compatible with the Azure Storage SDK.- Parameters:
httpProperties
- the properties to transform- Returns:
- the transformed
OperationContext
-
-