Class StreamSourceInfo
- java.lang.Object
-
- com.microsoft.azure.kusto.ingest.source.StreamSourceInfo
-
- All Implemented Interfaces:
SourceInfo
public class StreamSourceInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description StreamSourceInfo(InputStream stream)
StreamSourceInfo(InputStream stream, boolean leaveOpen)
StreamSourceInfo(InputStream stream, boolean leaveOpen, UUID sourceId)
StreamSourceInfo(InputStream stream, boolean leaveOpen, UUID sourceId, CompressionType compressionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompressionType
getCompressionType()
UUID
getSourceId()
InputStream
getStream()
boolean
isLeaveOpen()
void
setCompressionType(CompressionType compressionType)
void
setLeaveOpen(boolean leaveOpen)
Weather or not the stream will close after reading from it.void
setSourceId(UUID sourceId)
void
setStream(InputStream stream)
String
toString()
void
validate()
Checks that this SourceInfo is defined appropriately.
-
-
-
Constructor Detail
-
StreamSourceInfo
public StreamSourceInfo(InputStream stream)
-
StreamSourceInfo
public StreamSourceInfo(InputStream stream, boolean leaveOpen)
-
StreamSourceInfo
public StreamSourceInfo(InputStream stream, boolean leaveOpen, UUID sourceId)
-
StreamSourceInfo
public StreamSourceInfo(InputStream stream, boolean leaveOpen, UUID sourceId, CompressionType compressionType)
-
-
Method Detail
-
getStream
public InputStream getStream()
-
setStream
public void setStream(InputStream stream)
-
isLeaveOpen
public boolean isLeaveOpen()
-
setLeaveOpen
public void setLeaveOpen(boolean leaveOpen)
Weather or not the stream will close after reading from it.- Parameters:
leaveOpen
- leave the stream open after processing
-
setCompressionType
public void setCompressionType(CompressionType compressionType)
-
getCompressionType
public CompressionType getCompressionType()
-
validate
public void validate()
Description copied from interface:SourceInfo
Checks that this SourceInfo is defined appropriately.
-
getSourceId
public UUID getSourceId()
- Specified by:
getSourceId
in interfaceSourceInfo
-
setSourceId
public void setSourceId(UUID sourceId)
- Specified by:
setSourceId
in interfaceSourceInfo
-
-