Class ByteArrayIndexInput
java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.elasticsearch.common.lucene.store.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
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, skipBytesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ByteArrayIndexInput
public ByteArrayIndexInput(java.lang.String resourceDesc, byte[] bytes) -
ByteArrayIndexInput
public ByteArrayIndexInput(java.lang.String resourceDesc, byte[] bytes, int offset, int length)
-
-
Method Details
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classorg.apache.lucene.store.IndexInput- Throws:
java.io.IOException
-
getFilePointer
public long getFilePointer()- Specified by:
getFilePointerin classorg.apache.lucene.store.IndexInput
-
seek
public void seek(long l) throws java.io.IOException- Specified by:
seekin classorg.apache.lucene.store.IndexInput- Throws:
java.io.IOException
-
length
public long length()- Specified by:
lengthin classorg.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:
slicein classorg.apache.lucene.store.IndexInput- Throws:
java.io.IOException
-
readByte
public byte readByte() throws java.io.IOException- Specified by:
readBytein classorg.apache.lucene.store.DataInput- Throws:
java.io.IOException
-
readBytes
public void readBytes(byte[] b, int offset, int len) throws java.io.IOException- Specified by:
readBytesin classorg.apache.lucene.store.DataInput- Throws:
java.io.IOException
-