Class SegmentDirectory.Reader
- java.lang.Object
-
- org.apache.pinot.segment.spi.store.SegmentDirectory.Reader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
SegmentDirectory.Writer
- Enclosing class:
- SegmentDirectory
public abstract class SegmentDirectory.Reader extends Object implements Closeable
Reader for columnar index buffers from segment directory
-
-
Constructor Summary
Constructors Constructor Description Reader()
-
Method Summary
Modifier and Type Method Description abstract PinotDataBuffergetIndexFor(String column, ColumnIndexType type)Get columnar index data buffer.PinotDataBuffergetStarTreeIndex()InputStreamgetStarTreeIndexMap()The caller should close the input stream.abstract booleanhasIndexFor(String column, ColumnIndexType type)SegmentDirectorytoSegmentDirectory()abstract StringtoString()
-
-
-
Method Detail
-
getIndexFor
public abstract PinotDataBuffer getIndexFor(String column, ColumnIndexType type) throws IOException
Get columnar index data buffer.- Parameters:
column- column nametype- index type- Returns:
- a bytebuffer-like buffer holding index data
- Throws:
IOException
-
hasIndexFor
public abstract boolean hasIndexFor(String column, ColumnIndexType type)
-
toSegmentDirectory
public SegmentDirectory toSegmentDirectory()
-
getStarTreeIndex
public PinotDataBuffer getStarTreeIndex() throws IOException
- Throws:
IOException
-
getStarTreeIndexMap
public InputStream getStarTreeIndexMap() throws IOException
The caller should close the input stream.- Throws:
IOException
-
-