Class ByteArrayIndexInput

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Cloneable

    public class ByteArrayIndexInput
    extends org.apache.lucene.store.IndexInput
    Wraps array of bytes into IndexInput
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteArrayIndexInput​(java.lang.String resourceDesc, byte[] bytes)  
      ByteArrayIndexInput​(java.lang.String resourceDesc, byte[] bytes, int offset, int length)  
    • Method Summary

      Modifier and Type Method Description
      void close()  
      long getFilePointer()  
      long length()  
      byte readByte()  
      void readBytes​(byte[] b, int offset, int len)  
      void seek​(long l)  
      org.apache.lucene.store.IndexInput slice​(java.lang.String sliceDescription, long offset, long length)  
      • Methods inherited from class org.apache.lucene.store.IndexInput

        clone, getFullSliceDescription, randomAccessSlice, toString
      • Methods inherited from class org.apache.lucene.store.DataInput

        readBytes, readInt, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ByteArrayIndexInput

        public ByteArrayIndexInput​(java.lang.String resourceDesc,
                                   byte[] bytes)
      • ByteArrayIndexInput

        public ByteArrayIndexInput​(java.lang.String resourceDesc,
                                   byte[] bytes,
                                   int offset,
                                   int length)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class org.apache.lucene.store.IndexInput
        Throws:
        java.io.IOException
      • getFilePointer

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

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

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

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

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

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