Class 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.Accountable
    A memory-resident IndexOutput implementation.
    • Constructor Detail

      • GridLuceneOutputStream

        public GridLuceneOutputStream​(GridLuceneFile f)
        Constructor.
        Parameters:
        f - File.
    • Method Detail

      • reset

        public void reset()
        Resets this to an empty file.
      • getChecksum

        public long getChecksum()
                         throws IOException
        Specified by:
        getChecksum in class org.apache.lucene.store.IndexOutput
        Throws:
        IOException
      • writeByte

        public void writeByte​(byte b)
                       throws IOException
        Specified by:
        writeByte in class org.apache.lucene.store.DataOutput
        Throws:
        IOException
      • writeBytes

        public void writeBytes​(byte[] b,
                               int offset,
                               int len)
                        throws IOException
        Specified by:
        writeBytes in class org.apache.lucene.store.DataOutput
        Throws:
        IOException
      • getFilePointer

        public long getFilePointer()
        Specified by:
        getFilePointer in class org.apache.lucene.store.IndexOutput
      • copyBytes

        public void copyBytes​(org.apache.lucene.store.DataInput input,
                              long numBytes)
                       throws IOException
        Overrides:
        copyBytes in class org.apache.lucene.store.DataOutput
        Throws:
        IOException
      • ramBytesUsed

        public long ramBytesUsed()
        Specified by:
        ramBytesUsed in interface org.apache.lucene.util.Accountable
      • getChildResources

        public Collection<org.apache.lucene.util.Accountable> getChildResources()
        Specified by:
        getChildResources in interface org.apache.lucene.util.Accountable