Class GridLuceneDirectory

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.lucene.util.Accountable

    public class GridLuceneDirectory
    extends org.apache.lucene.store.BaseDirectory
    implements org.apache.lucene.util.Accountable
    A memory-resident Directory implementation.
    • Method Detail

      • listAll

        public final String[] listAll()
        Specified by:
        listAll in class org.apache.lucene.store.Directory
      • syncMetaData

        public void syncMetaData()
                          throws IOException
        Specified by:
        syncMetaData in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • createTempOutput

        public org.apache.lucene.store.IndexOutput createTempOutput​(String prefix,
                                                                    String suffix,
                                                                    org.apache.lucene.store.IOContext ctx)
                                                             throws IOException
        Specified by:
        createTempOutput in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • fileLength

        public final long fileLength​(String name)
                              throws IOException
        Specified by:
        fileLength in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • deleteFile

        public void deleteFile​(String name)
                        throws IOException
        Specified by:
        deleteFile in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • createOutput

        public org.apache.lucene.store.IndexOutput createOutput​(String name,
                                                                org.apache.lucene.store.IOContext context)
                                                         throws IOException
        Specified by:
        createOutput in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • openInput

        public org.apache.lucene.store.IndexInput openInput​(String name,
                                                            org.apache.lucene.store.IOContext context)
                                                     throws IOException
        Specified by:
        openInput in class org.apache.lucene.store.Directory
        Throws:
        IOException
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in class org.apache.lucene.store.Directory
      • getPendingDeletions

        public Set<String> getPendingDeletions()
                                        throws IOException
        Specified by:
        getPendingDeletions in class org.apache.lucene.store.Directory
        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