Class PinotBufferIndexInput

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Cloneable

    public class PinotBufferIndexInput
    extends org.apache.lucene.store.IndexInput
    PinotBufferIndexInput 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 Detail

      • PinotBufferIndexInput

        public PinotBufferIndexInput​(PinotDataBuffer pinotDataBuffer,
                                     long offset,
                                     long length)
    • Method Detail

      • getFilePointer

        public long getFilePointer()
        Specified by:
        getFilePointer in class org.apache.lucene.store.IndexInput
      • seek

        public void seek​(long l)
                  throws IOException
        Specified by:
        seek in class org.apache.lucene.store.IndexInput
        Throws:
        IOException
      • length

        public long length()
        Specified by:
        length in class org.apache.lucene.store.IndexInput
      • slice

        public org.apache.lucene.store.IndexInput slice​(String s,
                                                        long l,
                                                        long l1)
                                                 throws IOException
        Specified by:
        slice in class org.apache.lucene.store.IndexInput
        Throws:
        IOException
      • readByte

        public byte readByte()
                      throws IOException
        Specified by:
        readByte in class org.apache.lucene.store.DataInput
        Throws:
        IOException
      • readBytes

        public void readBytes​(byte[] bytes,
                              int destOffset,
                              int length)
                       throws IOException
        Specified by:
        readBytes in class org.apache.lucene.store.DataInput
        Throws:
        IOException