public class IngestionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull StreamSourceInfo |
fileToStream(FileSourceInfo fileSourceInfo,
boolean resettable) |
static CompressionType |
getCompression(String fileName) |
static byte[] |
readBytesFromInputStream(InputStream inputStream,
int bytesToRead) |
static @NotNull StreamSourceInfo |
resultSetToStream(ResultSetSourceInfo resultSetSourceInfo) |
@NotNull public static @NotNull StreamSourceInfo fileToStream(FileSourceInfo fileSourceInfo, boolean resettable) throws IngestionClientException, FileNotFoundException
@NotNull public static @NotNull StreamSourceInfo resultSetToStream(ResultSetSourceInfo resultSetSourceInfo) throws IOException, IngestionClientException
IOExceptionIngestionClientExceptionpublic static byte[] readBytesFromInputStream(InputStream inputStream, int bytesToRead) throws IOException
IOExceptionpublic static CompressionType getCompression(String fileName)
Copyright © 2024. All rights reserved.