Class StatsCollectorConfig
- java.lang.Object
-
- org.apache.pinot.segment.spi.creator.StatsCollectorConfig
-
public class StatsCollectorConfig extends Object
Config class for Stats collector, contains all the configs and parameters required to build the stats collector.
-
-
Constructor Summary
Constructors Constructor Description StatsCollectorConfig(TableConfig tableConfig, Schema schema, SegmentPartitionConfig segmentPartitionConfig)Constructor for the class.
-
Method Summary
Modifier and Type Method Description FieldSpecgetFieldSpecForColumn(String column)intgetNumPartitions(String column)Returns the number of partitions for the specified column.Map<String,String>getPartitionFunctionConfig(String column)StringgetPartitionFunctionName(String column)SchemagetSchema()TableConfiggetTableConfig()
-
-
-
Constructor Detail
-
StatsCollectorConfig
public StatsCollectorConfig(TableConfig tableConfig, Schema schema, @Nullable SegmentPartitionConfig segmentPartitionConfig)
Constructor for the class.- Parameters:
schema- Data schemasegmentPartitionConfig- Segment partitioning config
-
-
Method Detail
-
getNumPartitions
public int getNumPartitions(String column)
Returns the number of partitions for the specified column. If segment partition config does not exist, returnsSegmentPartitionConfig.INVALID_NUM_PARTITIONS.- Parameters:
column- Column for which to to return the number of partitions.- Returns:
- Number of partitions for the column.
-
getPartitionFunctionConfig
@Nullable public Map<String,String> getPartitionFunctionConfig(String column)
-
getSchema
public Schema getSchema()
-
getTableConfig
public TableConfig getTableConfig()
-
-