Class ByteArrayIndexInput

java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.elasticsearch.common.lucene.store.ByteArrayIndexInput
All Implemented Interfaces:
Closeable, AutoCloseable, Cloneable

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

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

    Modifier and Type
    Method
    Description
    void
     
    long
     
    long
     
    byte
     
    void
    readBytes(byte[] b, int offset, int len)
     
    void
    seek(long l)
     
    org.apache.lucene.store.IndexInput
    slice(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, readLELongs, 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 Details

    • ByteArrayIndexInput

      public ByteArrayIndexInput(String resourceDesc, byte[] bytes)
    • ByteArrayIndexInput

      public ByteArrayIndexInput(String resourceDesc, byte[] bytes, int offset, int length)
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close 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 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 sliceDescription, long offset, long length) 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[] b, int offset, int len) throws IOException
      Specified by:
      readBytes in class org.apache.lucene.store.DataInput
      Throws:
      IOException