Class MutableSegmentImpl
- java.lang.Object
-
- org.apache.pinot.segment.local.indexsegment.mutable.MutableSegmentImpl
-
- All Implemented Interfaces:
IndexSegment,MutableSegment
public class MutableSegmentImpl extends Object implements MutableSegment
-
-
Constructor Summary
Constructors Constructor Description MutableSegmentImpl(RealtimeSegmentConfig config, ServerMetrics serverMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddestroy()Set<String>getColumnNames()DataSourcegetDataSource(String column)longgetMaxTime()Deprecated.longgetMinTime()Deprecated.intgetNumDocsIndexed()Set<String>getPhysicalColumnNames()ThreadSafeMutableRoaringBitmapgetQueryableDocIds()GenericRowgetRecord(int docId, GenericRow reuse)SegmentMetadatagetSegmentMetadata()StringgetSegmentName()SegmentPartitionConfiggetSegmentPartitionConfig()int[]getSortedDocIdIterationOrderWithSortedColumn(String column)Returns the docIds to use for iteration when the data is sorted by the given column.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
-
MutableSegmentImpl
public MutableSegmentImpl(RealtimeSegmentConfig config, @Nullable ServerMetrics serverMetrics)
-
-
Method Detail
-
getSegmentPartitionConfig
public SegmentPartitionConfig getSegmentPartitionConfig()
-
getMinTime
@Deprecated public long getMinTime()
Deprecated.Get min time from the segment, based on the time column, only used by Kafka HLC.
-
getMaxTime
@Deprecated public long getMaxTime()
Deprecated.Get max time from the segment, based on the time column, only used by Kafka HLC.
-
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 column)
- Specified by:
getDataSourcein interfaceIndexSegment
-
getStarTrees
public List<StarTreeV2> getStarTrees()
- Specified by:
getStarTreesin interfaceIndexSegment
-
getValidDocIds
@Nullable public ThreadSafeMutableRoaringBitmap getValidDocIds()
- Specified by:
getValidDocIdsin interfaceIndexSegment
-
getQueryableDocIds
@Nullable public ThreadSafeMutableRoaringBitmap getQueryableDocIds()
- Specified by:
getQueryableDocIdsin 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
-
getSortedDocIdIterationOrderWithSortedColumn
public int[] getSortedDocIdIterationOrderWithSortedColumn(String column)
Returns the docIds to use for iteration when the data is sorted by the given column.Called only by realtime record reader.
- Parameters:
column- The column to use for sorting- Returns:
- The docIds to use for iteration
-
-