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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getFilePointer()
long
length()
byte
readByte()
void
readBytes(byte[] b, int offset, int len)
void
seek(long l)
org.apache.lucene.store.IndexInput
slice(java.lang.String sliceDescription, long offset, long length)
-
Methods inherited from class org.apache.lucene.store.IndexInput
clone, getFullSliceDescription, randomAccessSlice, toString
-
-
-
-
Method Detail
-
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
-
-