Package org.apache.pinot.spi.stream
Class StreamConfig
- java.lang.Object
-
- org.apache.pinot.spi.stream.StreamConfig
-
- Direct Known Subclasses:
PartitionLevelStreamConfig
public class StreamConfig extends Object
Provides all the configs related to the stream as configured in the table config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamConfig.ConsumerTypeThe type of the stream consumer either HIGHLEVEL or LOWLEVEL.
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONSUMER_FACTORY_CLASS_NAME_STRINGstatic intDEFAULT_FLUSH_AUTOTUNE_INITIAL_ROWSstatic intDEFAULT_FLUSH_THRESHOLD_ROWSstatic longDEFAULT_FLUSH_THRESHOLD_SEGMENT_SIZE_BYTESstatic longDEFAULT_FLUSH_THRESHOLD_TIME_MILLISstatic intDEFAULT_IDLE_TIMEOUT_MILLISstatic longDEFAULT_STREAM_CONNECTION_TIMEOUT_MILLISstatic intDEFAULT_STREAM_FETCH_TIMEOUT_MILLIS
-
Constructor Summary
Constructors Constructor Description StreamConfig(String tableNameWithType, Map<String,String> streamConfigMap)Initializes a StreamConfig using the map of stream configs from the table config
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)protected intextractFlushThresholdRows(Map<String,String> streamConfigMap)protected longextractFlushThresholdTimeMillis(Map<String,String> streamConfigMap)longgetConnectionTimeoutMillis()StringgetConsumerFactoryClassName()List<StreamConfig.ConsumerType>getConsumerTypes()StringgetDecoderClass()Map<String,String>getDecoderProperties()intgetFetchTimeoutMillis()intgetFlushAutotuneInitialRows()intgetFlushThresholdRows()longgetFlushThresholdSegmentSizeBytes()longgetFlushThresholdTimeMillis()StringgetGroupId()longgetIdleTimeoutMillis()OffsetCriteriagetOffsetCriteria()Map<String,String>getStreamConfigsMap()StringgetTableNameWithType()Optional<Double>getTopicConsumptionRateLimit()StringgetTopicName()StringgetType()inthashCode()booleanhasHighLevelConsumerType()booleanhasLowLevelConsumerType()voidsetOffsetCriteria(OffsetCriteria offsetCriteria)StringtoString()
-
-
-
Field Detail
-
DEFAULT_FLUSH_THRESHOLD_ROWS
public static final int DEFAULT_FLUSH_THRESHOLD_ROWS
- See Also:
- Constant Field Values
-
DEFAULT_FLUSH_THRESHOLD_TIME_MILLIS
public static final long DEFAULT_FLUSH_THRESHOLD_TIME_MILLIS
-
DEFAULT_FLUSH_THRESHOLD_SEGMENT_SIZE_BYTES
public static final long DEFAULT_FLUSH_THRESHOLD_SEGMENT_SIZE_BYTES
- See Also:
- Constant Field Values
-
DEFAULT_FLUSH_AUTOTUNE_INITIAL_ROWS
public static final int DEFAULT_FLUSH_AUTOTUNE_INITIAL_ROWS
- See Also:
- Constant Field Values
-
DEFAULT_CONSUMER_FACTORY_CLASS_NAME_STRING
public static final String DEFAULT_CONSUMER_FACTORY_CLASS_NAME_STRING
- See Also:
- Constant Field Values
-
DEFAULT_STREAM_CONNECTION_TIMEOUT_MILLIS
public static final long DEFAULT_STREAM_CONNECTION_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
-
DEFAULT_STREAM_FETCH_TIMEOUT_MILLIS
public static final int DEFAULT_STREAM_FETCH_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
-
DEFAULT_IDLE_TIMEOUT_MILLIS
public static final int DEFAULT_IDLE_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractFlushThresholdRows
protected int extractFlushThresholdRows(Map<String,String> streamConfigMap)
-
extractFlushThresholdTimeMillis
protected long extractFlushThresholdTimeMillis(Map<String,String> streamConfigMap)
-
getType
public String getType()
-
getTopicName
public String getTopicName()
-
getConsumerTypes
public List<StreamConfig.ConsumerType> getConsumerTypes()
-
hasHighLevelConsumerType
public boolean hasHighLevelConsumerType()
-
hasLowLevelConsumerType
public boolean hasLowLevelConsumerType()
-
getConsumerFactoryClassName
public String getConsumerFactoryClassName()
-
getOffsetCriteria
public OffsetCriteria getOffsetCriteria()
-
setOffsetCriteria
public void setOffsetCriteria(OffsetCriteria offsetCriteria)
-
getDecoderClass
public String getDecoderClass()
-
getConnectionTimeoutMillis
public long getConnectionTimeoutMillis()
-
getFetchTimeoutMillis
public int getFetchTimeoutMillis()
-
getIdleTimeoutMillis
public long getIdleTimeoutMillis()
-
getFlushThresholdRows
public int getFlushThresholdRows()
-
getFlushThresholdTimeMillis
public long getFlushThresholdTimeMillis()
-
getFlushThresholdSegmentSizeBytes
public long getFlushThresholdSegmentSizeBytes()
-
getFlushAutotuneInitialRows
public int getFlushAutotuneInitialRows()
-
getGroupId
public String getGroupId()
-
getTableNameWithType
public String getTableNameWithType()
-
-