Class StreamSourceInfo
- java.lang.Object
-
- com.microsoft.azure.kusto.ingest.source.StreamSourceInfo
-
- All Implemented Interfaces:
TraceableAttributes,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 CompressionTypegetCompressionType()UUIDgetSourceId()InputStreamgetStream()Map<String,String>getTracingAttributes()booleanisLeaveOpen()voidsetCompressionType(CompressionType compressionType)voidsetLeaveOpen(boolean leaveOpen)Weather or not the stream will close after reading from it.voidsetSourceId(UUID sourceId)voidsetStream(InputStream stream)StringtoString()voidvalidate()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:SourceInfoChecks that this SourceInfo is defined appropriately.
-
getTracingAttributes
public Map<String,String> getTracingAttributes()
- Specified by:
getTracingAttributesin interfaceTraceableAttributes
-
getSourceId
public UUID getSourceId()
- Specified by:
getSourceIdin interfaceSourceInfo
-
setSourceId
public void setSourceId(UUID sourceId)
- Specified by:
setSourceIdin interfaceSourceInfo
-
-