Class PinotBufferIndexInput
- java.lang.Object
-
- org.apache.lucene.store.DataInput
-
- org.apache.lucene.store.IndexInput
-
- org.apache.pinot.segment.local.utils.fst.PinotBufferIndexInput
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
public class PinotBufferIndexInput extends org.apache.lucene.store.IndexInputPinotBufferIndexInput is a wrapper around PinotDataBuffer implementing IndexInput apis. It acts as a bridge between lucene FST reader library and PinotDataBuffer, it lets FST index load into PinotDataBuffer and helps in utilizing FST reader (org.apache.lucene.util.fst.FST).
-
-
Constructor Summary
Constructors Constructor Description PinotBufferIndexInput(PinotDataBuffer pinotDataBuffer, Long offset, Long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetFilePointer()longlength()bytereadByte()voidreadBytes(byte[] bytes, int destOffset, int length)voidseek(long l)org.apache.lucene.store.IndexInputslice(String s, long l, long l1)-
Methods inherited from class org.apache.lucene.store.IndexInput
clone, getFullSliceDescription, randomAccessSlice, toString
-
-
-
-
Constructor Detail
-
PinotBufferIndexInput
public PinotBufferIndexInput(PinotDataBuffer pinotDataBuffer, Long offset, Long length)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.store.IndexInput- Throws:
IOException
-
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointerin classorg.apache.lucene.store.IndexInput
-
seek
public void seek(long l) throws IOException- Specified by:
seekin classorg.apache.lucene.store.IndexInput- Throws:
IOException
-
length
public long length()
- Specified by:
lengthin classorg.apache.lucene.store.IndexInput
-
slice
public org.apache.lucene.store.IndexInput slice(String s, long l, long l1) throws IOException
- Specified by:
slicein classorg.apache.lucene.store.IndexInput- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein classorg.apache.lucene.store.DataInput- Throws:
IOException
-
readBytes
public void readBytes(byte[] bytes, int destOffset, int length) throws IOException- Specified by:
readBytesin classorg.apache.lucene.store.DataInput- Throws:
IOException
-
-