Class StarTreeIndexReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.store.StarTreeIndexReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class StarTreeIndexReader extends Object implements Closeable
This class provides access to the StarTree index data in a segment directory. The StarTree index data is stored in star_tree_index file, whose content can be parsed according to offset/size from star_tree_index_map file.
-
-
Constructor Summary
Constructors Constructor Description StarTreeIndexReader(File segmentDirectory, SegmentMetadataImpl segmentMetadata, ReadMode readMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()PinotDataBuffergetBuffer(int starTreeId, String column, IndexType<?,?,?> type)booleanhasIndexFor(int starTreeId, String column, IndexType<?,?,?> type)StringtoString()
-
-
-
Constructor Detail
-
StarTreeIndexReader
public StarTreeIndexReader(File segmentDirectory, SegmentMetadataImpl segmentMetadata, ReadMode readMode) throws IOException, org.apache.commons.configuration2.ex.ConfigurationException
- Parameters:
segmentDirectory- the segment directory contains StarTree indexsegmentMetadata- segment metadata must be fully initializedreadMode- mmap vs heap mode- Throws:
IOExceptionorg.apache.commons.configuration2.ex.ConfigurationException
-
-
Method Detail
-
getBuffer
public PinotDataBuffer getBuffer(int starTreeId, String column, IndexType<?,?,?> type) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-