Class ConcurrentDecodingMetaIndex
- java.lang.Object
-
- org.terrier.structures.concurrent.ConcurrentDecodingMetaIndex
-
-
Constructor Summary
Constructors Constructor Description ConcurrentDecodingMetaIndex(MetaIndex _parent)
-
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 indexint
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
-
Methods inherited from interface org.terrier.structures.MetaIndex
getReverseKeys
-
-
-
-
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.
-
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.
-
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.
-
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.
-
getKeys
public java.lang.String[] getKeys()
Description copied from interface:MetaIndex
Returns the keys of this meta index
-
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 interfaceMetaIndex
- 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 interfaceMetaIndex
- Throws:
java.io.IOException
-
size
public int size()
Description copied from interface:MetaIndex
How many documents in this metaindex
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-