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, 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(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classorg.apache.lucene.store.IndexInput
- Throws:
java.io.IOException
-
getFilePointer
public long getFilePointer()- Specified by:
getFilePointer
in classorg.apache.lucene.store.IndexInput
-
seek
public void seek(long l) throws java.io.IOException- Specified by:
seek
in classorg.apache.lucene.store.IndexInput
- Throws:
java.io.IOException
-
length
public long length()- Specified by:
length
in 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:
slice
in classorg.apache.lucene.store.IndexInput
- Throws:
java.io.IOException
-
readByte
public byte readByte() throws java.io.IOException- Specified by:
readByte
in 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:
readBytes
in classorg.apache.lucene.store.DataInput
- Throws:
java.io.IOException
-