Class IntermediateSegment
- java.lang.Object
-
- org.apache.pinot.segment.local.indexsegment.mutable.IntermediateSegment
-
- All Implemented Interfaces:
IndexSegment,MutableSegment
public class IntermediateSegment extends Object implements MutableSegment
Intermediate segment format to store the collected data so far. This segment format will be used to generate the final offline segment in SegmentIndexCreationDriver.
-
-
Constructor Summary
Constructors Constructor Description IntermediateSegment(SegmentGeneratorConfig segmentGeneratorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Set<String>getColumnNames()DataSourcegetDataSource(String columnName)intgetNumDocsIndexed()Set<String>getPhysicalColumnNames()GenericRowgetRecord(int docId, GenericRow reuse)SegmentMetadatagetSegmentMetadata()StringgetSegmentName()List<StarTreeV2>getStarTrees()ThreadSafeMutableRoaringBitmapgetValidDocIds()ObjectgetValue(int docId, String column)booleanindex(GenericRow row, RowMetadata rowMetadata)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.IndexSegment
acquire, prefetch, release
-
-
-
-
Constructor Detail
-
IntermediateSegment
public IntermediateSegment(SegmentGeneratorConfig segmentGeneratorConfig)
-
-
Method Detail
-
index
public boolean index(GenericRow row, @Nullable RowMetadata rowMetadata) throws IOException
- Specified by:
indexin interfaceMutableSegment- Throws:
IOException
-
getNumDocsIndexed
public int getNumDocsIndexed()
- Specified by:
getNumDocsIndexedin interfaceMutableSegment
-
getSegmentName
public String getSegmentName()
- Specified by:
getSegmentNamein interfaceIndexSegment
-
getSegmentMetadata
public SegmentMetadata getSegmentMetadata()
- Specified by:
getSegmentMetadatain interfaceIndexSegment
-
getColumnNames
public Set<String> getColumnNames()
- Specified by:
getColumnNamesin interfaceIndexSegment
-
getPhysicalColumnNames
public Set<String> getPhysicalColumnNames()
- Specified by:
getPhysicalColumnNamesin interfaceIndexSegment
-
getDataSource
public DataSource getDataSource(String columnName)
- Specified by:
getDataSourcein interfaceIndexSegment
-
getStarTrees
public List<StarTreeV2> getStarTrees()
- Specified by:
getStarTreesin interfaceIndexSegment
-
getValidDocIds
@Nullable public ThreadSafeMutableRoaringBitmap getValidDocIds()
- Specified by:
getValidDocIdsin interfaceIndexSegment
-
getRecord
public GenericRow getRecord(int docId, GenericRow reuse)
- Specified by:
getRecordin interfaceIndexSegment
-
getValue
public Object getValue(int docId, String column)
- Specified by:
getValuein interfaceIndexSegment
-
destroy
public void destroy()
- Specified by:
destroyin interfaceIndexSegment
-
-