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
ConstructorsConstructorDescriptionByteArrayIndexInput(String resourceDesc, byte[] bytes)ByteArrayIndexInput(String resourceDesc, byte[] bytes, int offset, int length) -
Method Summary
Methods inherited from class org.apache.lucene.store.IndexInput
clone, getFullSliceDescription, randomAccessSlice, toStringMethods inherited from class org.apache.lucene.store.DataInput
readBytes, readInt, readLELongs, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
-
Constructor Details
-
ByteArrayIndexInput
-
ByteArrayIndexInput
-
-
Method Details
-
close
- 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
- 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 sliceDescription, long offset, long length) throws IOException- Specified by:
slicein classorg.apache.lucene.store.IndexInput- Throws:
IOException
-
readByte
- Specified by:
readBytein classorg.apache.lucene.store.DataInput- Throws:
IOException
-
readBytes
- Specified by:
readBytesin classorg.apache.lucene.store.DataInput- Throws:
IOException
-