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 voidclose()java.lang.String[]getAllItems(int docid)Obtain all metadata for specified document.intgetDocument(java.lang.String key, java.lang.String value)Obtain docid where document has specified metadata value in the specified type.java.lang.StringgetItem(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 indexintsize()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.IOExceptionDescription copied from interface:MetaIndexObtain 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.IOExceptionDescription copied from interface:MetaIndexObtain metadata of specified type for specified documents.
-
getItem
public java.lang.String getItem(java.lang.String key, int docid) throws java.io.IOExceptionDescription copied from interface:MetaIndexObtain metadata of specified type for specified document.
-
getItems
public java.lang.String[] getItems(java.lang.String[] keys, int docid) throws java.io.IOExceptionDescription copied from interface:MetaIndexObtain metadata of specified types for specified document.
-
getKeys
public java.lang.String[] getKeys()
Description copied from interface:MetaIndexReturns the keys of this meta index
-
getAllItems
public java.lang.String[] getAllItems(int docid) throws java.io.IOExceptionDescription copied from interface:MetaIndexObtain all metadata for specified document.- Specified by:
getAllItemsin interfaceMetaIndex- Throws:
java.io.IOException
-
getDocument
public int getDocument(java.lang.String key, java.lang.String value) throws java.io.IOExceptionDescription copied from interface:MetaIndexObtain 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:
getDocumentin interfaceMetaIndex- Throws:
java.io.IOException
-
size
public int size()
Description copied from interface:MetaIndexHow many documents in this metaindex
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-