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
ConstructorDescriptionByteArrayIndexInput(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, toString
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.lucene.store.IndexInput
- Throws:
IOException
-
getFilePointer
public long getFilePointer()- Specified by:
getFilePointer
in classorg.apache.lucene.store.IndexInput
-
seek
- Specified by:
seek
in classorg.apache.lucene.store.IndexInput
- Throws:
IOException
-
length
public long length()- Specified by:
length
in classorg.apache.lucene.store.IndexInput
-
slice
public org.apache.lucene.store.IndexInput slice(String sliceDescription, long offset, long length) throws IOException- Specified by:
slice
in classorg.apache.lucene.store.IndexInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in classorg.apache.lucene.store.DataInput
- Throws:
IOException
-
readBytes
- Specified by:
readBytes
in classorg.apache.lucene.store.DataInput
- Throws:
IOException
-