Class GridLuceneInputStream
- java.lang.Object
-
- org.apache.lucene.store.DataInput
-
- org.apache.lucene.store.IndexInput
-
- org.apache.ignite.internal.processors.query.h2.opt.GridLuceneInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
public class GridLuceneInputStream extends org.apache.lucene.store.IndexInput implements Cloneable
A memory-residentIndexInputimplementation.
-
-
Constructor Summary
Constructors Constructor Description GridLuceneInputStream(String name, GridLuceneFile f)Constructor.GridLuceneInputStream(String name, GridLuceneFile f, long length)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.store.IndexInputclone()voidclose()longgetFilePointer()longlength()bytereadByte()voidreadBytes(byte[] b, int offset, int len)voidseek(long pos)org.apache.lucene.store.IndexInputslice(String sliceDescription, long offset, long length)-
Methods inherited from class org.apache.lucene.store.IndexInput
getFullSliceDescription, randomAccessSlice, toString
-
-
-
-
Constructor Detail
-
GridLuceneInputStream
public GridLuceneInputStream(String name, GridLuceneFile f) throws IOException
Constructor.- Parameters:
name- Name.f- File.- Throws:
IOException- If failed.
-
GridLuceneInputStream
public GridLuceneInputStream(String name, GridLuceneFile f, long length) throws IOException
Constructor.- Parameters:
name- Name.f- File.length- inputStream length.- Throws:
IOException- If failed.
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.store.IndexInput
-
clone
public org.apache.lucene.store.IndexInput clone()
- Overrides:
clonein classorg.apache.lucene.store.IndexInput
-
length
public long length()
- Specified by:
lengthin classorg.apache.lucene.store.IndexInput
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein classorg.apache.lucene.store.DataInput- Throws:
IOException
-
readBytes
public void readBytes(byte[] b, int offset, int len) throws IOException- Specified by:
readBytesin classorg.apache.lucene.store.DataInput- 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
-
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointerin classorg.apache.lucene.store.IndexInput
-
seek
public void seek(long pos) throws IOException- Specified by:
seekin classorg.apache.lucene.store.IndexInput- Throws:
IOException
-
-