Class GridLuceneInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Cloneable

    public class GridLuceneInputStream
    extends org.apache.lucene.store.IndexInput
    implements Cloneable
    A memory-resident IndexInput implementation.
    • Constructor Detail

      • GridLuceneInputStream

        public GridLuceneInputStream​(String name,
                                     GridLuceneFile f,
                                     long length)
                              throws IOException
        Constructor.
        Parameters:
        name - Name.
        f - File.
        length - inputStream length.
        Throws:
        IOException - If failed.
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in class org.apache.lucene.store.IndexInput
      • clone

        public org.apache.lucene.store.IndexInput clone()
        Overrides:
        clone in class org.apache.lucene.store.IndexInput
      • length

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

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

        public void readBytes​(byte[] b,
                              int offset,
                              int len)
                       throws IOException
        Specified by:
        readBytes in class org.apache.lucene.store.DataInput
        Throws:
        IOException
      • slice

        public org.apache.lucene.store.IndexInput slice​(String sliceDescription,
                                                        long offset,
                                                        long length)
                                                 throws IOException
        Specified by:
        slice in class org.apache.lucene.store.IndexInput
        Throws:
        IOException
      • getFilePointer

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

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