Class GridLuceneFile

  • All Implemented Interfaces:
    org.apache.lucene.util.Accountable

    public class GridLuceneFile
    extends Object
    implements org.apache.lucene.util.Accountable
    Lucene file.
    • Method Detail

      • getName

        public String getName()
        Returns:
        filename
      • getLength

        public long getLength()
        For non-stream access from thread that might be concurrent with writing
        Returns:
        Length.
      • setLength

        protected void setLength​(long length)
        Sets length.
        Parameters:
        length - Length.
      • delete

        public void delete()
        Deletes file and deallocates memory.
      • 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