Module org.elasticsearch.server
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,org.apache.lucene.store.RandomAccessInput
public class ByteArrayIndexInput
extends org.apache.lucene.store.IndexInput
implements org.apache.lucene.store.RandomAccessInput
Wraps array of bytes into IndexInput
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayIndexInput(String resourceDesc, byte[] bytes) ByteArrayIndexInput(String resourceDesc, byte[] bytes, int offset, int length) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longlonglength()bytereadByte()bytereadByte(long pos) voidreadBytes(byte[] b, int offset, int len) intreadInt()intreadInt(long pos) longreadLong()longreadLong(long pos) shortshortreadShort(long pos) voidseek(long l) org.apache.lucene.store.IndexInputMethods inherited from class org.apache.lucene.store.IndexInput
clone, getFullSliceDescription, isLoaded, prefetch, randomAccessSlice, skipBytes, slice, toString, updateReadAdviceMethods inherited from class org.apache.lucene.store.DataInput
readBytes, readFloats, readGroupVInt, readInts, readLongs, readMapOfStrings, readSetOfStrings, readString, readVInt, readVLong, readZInt, readZLongMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.store.RandomAccessInput
isLoaded, prefetch, readBytes
-
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 interfaceorg.apache.lucene.store.RandomAccessInput- Specified by:
lengthin classorg.apache.lucene.store.IndexInput
-
readByte
- Specified by:
readBytein interfaceorg.apache.lucene.store.RandomAccessInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceorg.apache.lucene.store.RandomAccessInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceorg.apache.lucene.store.RandomAccessInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceorg.apache.lucene.store.RandomAccessInput- Throws:
IOException
-
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
-
readShort
- Overrides:
readShortin classorg.apache.lucene.store.DataInput- Throws:
IOException
-
readInt
- Overrides:
readIntin classorg.apache.lucene.store.DataInput- Throws:
IOException
-
readLong
- Overrides:
readLongin classorg.apache.lucene.store.DataInput- Throws:
IOException
-