Class GridLuceneOutputStream
- java.lang.Object
-
- org.apache.lucene.store.DataOutput
-
- org.apache.lucene.store.IndexOutput
-
- org.apache.ignite.internal.processors.query.h2.opt.GridLuceneOutputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable
public class GridLuceneOutputStream extends org.apache.lucene.store.IndexOutput implements org.apache.lucene.util.AccountableA memory-residentIndexOutputimplementation.
-
-
Constructor Summary
Constructors Constructor Description GridLuceneOutputStream(GridLuceneFile f)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcopyBytes(org.apache.lucene.store.DataInput input, long numBytes)longgetChecksum()Collection<org.apache.lucene.util.Accountable>getChildResources()longgetFilePointer()longramBytesUsed()voidreset()Resets this to an empty file.voidwriteByte(byte b)voidwriteBytes(byte[] b, int offset, int len)
-
-
-
Constructor Detail
-
GridLuceneOutputStream
public GridLuceneOutputStream(GridLuceneFile f)
Constructor.- Parameters:
f- File.
-
-
Method Detail
-
reset
public void reset()
Resets this to an empty file.
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.store.IndexOutput- Throws:
IOException
-
getChecksum
public long getChecksum() throws IOException- Specified by:
getChecksumin classorg.apache.lucene.store.IndexOutput- Throws:
IOException
-
writeByte
public void writeByte(byte b) throws IOException- Specified by:
writeBytein classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeBytes
public void writeBytes(byte[] b, int offset, int len) throws IOException- Specified by:
writeBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointerin classorg.apache.lucene.store.IndexOutput
-
copyBytes
public void copyBytes(org.apache.lucene.store.DataInput input, long numBytes) throws IOException- Overrides:
copyBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
getChildResources
public Collection<org.apache.lucene.util.Accountable> getChildResources()
- Specified by:
getChildResourcesin interfaceorg.apache.lucene.util.Accountable
-
-