Class ForwardIndexCreatorFactory
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.forward.ForwardIndexCreatorFactory
-
public class ForwardIndexCreatorFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ForwardIndexCreatorcreateIndexCreator(IndexCreationContext context, ForwardIndexConfig indexConfig)static ForwardIndexCreatorgetRawIndexCreatorForMVColumn(File file, ChunkCompressionType compressionType, String column, FieldSpec.DataType dataType, int totalDocs, int maxNumberOfMultiValueElements, boolean deriveNumDocsPerChunk, int writerVersion, int maxRowLengthInBytes)Helper method to build the raw index creator for the column.static ForwardIndexCreatorgetRawIndexCreatorForSVColumn(File file, ChunkCompressionType compressionType, String column, FieldSpec.DataType dataType, int totalDocs, int lengthOfLongestEntry, boolean deriveNumDocsPerChunk, int writerVersion)Helper method to build the raw index creator for the column.
-
-
-
Method Detail
-
createIndexCreator
public static ForwardIndexCreator createIndexCreator(IndexCreationContext context, ForwardIndexConfig indexConfig) throws Exception
- Throws:
Exception
-
getRawIndexCreatorForSVColumn
public static ForwardIndexCreator getRawIndexCreatorForSVColumn(File file, ChunkCompressionType compressionType, String column, FieldSpec.DataType dataType, int totalDocs, int lengthOfLongestEntry, boolean deriveNumDocsPerChunk, int writerVersion) throws IOException
Helper method to build the raw index creator for the column. Assumes that column to be indexed is single valued.- Parameters:
file- Output index filecolumn- Column nametotalDocs- Total number of documents to indexlengthOfLongestEntry- Length of longest entryderiveNumDocsPerChunk- true if varbyte writer should auto-derive the number of rows per chunkwriterVersion- version to use for the raw index writer- Returns:
- raw index creator
- Throws:
IOException
-
getRawIndexCreatorForMVColumn
public static ForwardIndexCreator getRawIndexCreatorForMVColumn(File file, ChunkCompressionType compressionType, String column, FieldSpec.DataType dataType, int totalDocs, int maxNumberOfMultiValueElements, boolean deriveNumDocsPerChunk, int writerVersion, int maxRowLengthInBytes) throws IOException
Helper method to build the raw index creator for the column. Assumes that column to be indexed is multi-valued.- Parameters:
file- Output index filecolumn- Column nametotalDocs- Total number of documents to indexderiveNumDocsPerChunk- true if varbyte writer should auto-derive the number of rows per chunkwriterVersion- version to use for the raw index writermaxRowLengthInBytes- the length of the longest row in bytes- Returns:
- raw index creator
- Throws:
IOException
-
-