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, skipBytes, toString
Methods inherited from class org.apache.lucene.store.DataInput
readBytes, readFloats, readLongs, readMapOfStrings, readSetOfStrings, readString, readVInt, readVLong, readZInt, readZLong
-
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
-
readShort
- Overrides:
readShort
in classorg.apache.lucene.store.DataInput
- Throws:
IOException
-
readInt
- Overrides:
readInt
in classorg.apache.lucene.store.DataInput
- Throws:
IOException
-
readLong
- Overrides:
readLong
in classorg.apache.lucene.store.DataInput
- Throws:
IOException
-