Class SegmentIndexCreationDriverImpl
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.SegmentIndexCreationDriverImpl
-
- All Implemented Interfaces:
Serializable,SegmentIndexCreationDriver
public class SegmentIndexCreationDriverImpl extends Object implements SegmentIndexCreationDriver
Implementation of an index segment creator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SegmentIndexCreationDriverImpl()
-
Method Summary
-
-
-
Method Detail
-
init
public void init(SegmentGeneratorConfig config) throws Exception
- Specified by:
initin interfaceSegmentIndexCreationDriver- Throws:
Exception
-
getRecordReader
public RecordReader getRecordReader()
-
init
public void init(SegmentGeneratorConfig config, RecordReader recordReader) throws Exception
- Throws:
Exception
-
init
@Deprecated public void init(SegmentGeneratorConfig config, SegmentCreationDataSource dataSource, RecordTransformer recordTransformer, @Nullable ComplexTypeTransformer complexTypeTransformer) throws Exception
Deprecated.- Throws:
Exception
-
init
public void init(SegmentGeneratorConfig config, SegmentCreationDataSource dataSource, TransformPipeline transformPipeline) throws Exception
- Throws:
Exception
-
build
public void build() throws Exception- Specified by:
buildin interfaceSegmentIndexCreationDriver- Throws:
Exception
-
buildByColumn
public void buildByColumn(IndexSegment indexSegment) throws Exception
- Throws:
Exception
-
getColumnStatisticsCollector
public ColumnStatistics getColumnStatisticsCollector(String columnName) throws Exception
- Specified by:
getColumnStatisticsCollectorin interfaceSegmentIndexCreationDriver- Throws:
Exception
-
persistCreationMeta
public static void persistCreationMeta(File indexDir, long crc, long creationTime) throws IOException
- Throws:
IOException
-
shouldUseVarLengthDictionary
@Deprecated public static boolean shouldUseVarLengthDictionary(String columnName, Set<String> varLengthDictColumns, FieldSpec.DataType columnStoredType, ColumnStatistics columnProfile)
Deprecated.Uses config and column properties like storedType and length of elements to determine if varLengthDictionary should be used for a column
-
getSegmentName
public String getSegmentName()
Returns the name of the segment associated with this index creation driver.- Specified by:
getSegmentNamein interfaceSegmentIndexCreationDriver
-
getOutputDirectory
public File getOutputDirectory()
Returns the path of the output directory- Specified by:
getOutputDirectoryin interfaceSegmentIndexCreationDriver
-
getIngestionSchemaValidator
public IngestionSchemaValidator getIngestionSchemaValidator()
Returns the schema validator.- Specified by:
getIngestionSchemaValidatorin interfaceSegmentIndexCreationDriver
-
getSegmentStats
public SegmentPreIndexStatsContainer getSegmentStats()
-
-