Class ConcurrentDecodingMetaIndex

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, MetaIndex

    public class ConcurrentDecodingMetaIndex
    extends java.lang.Object
    implements MetaIndex
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String[] getAllItems​(int docid)
      Obtain all metadata for specified document.
      int getDocument​(java.lang.String key, java.lang.String value)
      Obtain docid where document has specified metadata value in the specified type.
      java.lang.String getItem​(java.lang.String key, int docid)
      Obtain metadata of specified type for specified document.
      java.util.concurrent.Future<java.lang.String> getItemFuture​(java.lang.String key, int docid)  
      java.lang.String[] getItems​(java.lang.String[] keys, int docid)
      Obtain metadata of specified types for specified document.
      java.lang.String[][] getItems​(java.lang.String[] Keys, int[] docids)
      Obtain metadata of specified types for specified documents.
      java.lang.String[] getItems​(java.lang.String Key, int[] docids)
      Obtain metadata of specified type for specified documents.
      java.util.concurrent.Future<java.lang.String[]> getItemsFuture​(java.lang.String[] Keys, int docid)  
      java.lang.String[] getKeys()
      Returns the keys of this meta index
      int size()
      How many documents in this metaindex
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConcurrentDecodingMetaIndex

        public ConcurrentDecodingMetaIndex​(MetaIndex _parent)
    • Method Detail

      • getItemsFuture

        public java.util.concurrent.Future<java.lang.String[]> getItemsFuture​(java.lang.String[] Keys,
                                                                              int docid)
      • getItemFuture

        public java.util.concurrent.Future<java.lang.String> getItemFuture​(java.lang.String key,
                                                                           int docid)
      • getItems

        public java.lang.String[][] getItems​(java.lang.String[] Keys,
                                             int[] docids)
                                      throws java.io.IOException
        Description copied from interface: MetaIndex
        Obtain metadata of specified types for specified documents. Return array is indexed by documents, then by metakeys.
        Specified by:
        getItems in interface MetaIndex
        Throws:
        java.io.IOException
      • getItems

        public java.lang.String[] getItems​(java.lang.String Key,
                                           int[] docids)
                                    throws java.io.IOException
        Description copied from interface: MetaIndex
        Obtain metadata of specified type for specified documents.
        Specified by:
        getItems in interface MetaIndex
        Throws:
        java.io.IOException
      • getItem

        public java.lang.String getItem​(java.lang.String key,
                                        int docid)
                                 throws java.io.IOException
        Description copied from interface: MetaIndex
        Obtain metadata of specified type for specified document.
        Specified by:
        getItem in interface MetaIndex
        Throws:
        java.io.IOException
      • getItems

        public java.lang.String[] getItems​(java.lang.String[] keys,
                                           int docid)
                                    throws java.io.IOException
        Description copied from interface: MetaIndex
        Obtain metadata of specified types for specified document.
        Specified by:
        getItems in interface MetaIndex
        Throws:
        java.io.IOException
      • getKeys

        public java.lang.String[] getKeys()
        Description copied from interface: MetaIndex
        Returns the keys of this meta index
        Specified by:
        getKeys in interface MetaIndex
      • getAllItems

        public java.lang.String[] getAllItems​(int docid)
                                       throws java.io.IOException
        Description copied from interface: MetaIndex
        Obtain all metadata for specified document.
        Specified by:
        getAllItems in interface MetaIndex
        Throws:
        java.io.IOException
      • getDocument

        public int getDocument​(java.lang.String key,
                               java.lang.String value)
                        throws java.io.IOException
        Description copied from interface: MetaIndex
        Obtain docid where document has specified metadata value in the specified type. Returns -1 if the value cannot be found for the specified key type.
        Specified by:
        getDocument in interface MetaIndex
        Throws:
        java.io.IOException
      • size

        public int size()
        Description copied from interface: MetaIndex
        How many documents in this metaindex
        Specified by:
        size in interface MetaIndex
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException