public class MemoryCompressedMetaIndex extends MemoryMetaIndex implements MetaIndexMap
Properties
reverse| Constructor and Description |
|---|
MemoryCompressedMetaIndex()
Constructor.
|
MemoryCompressedMetaIndex(String[] keys,
int[] keylengths) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Delete contents of metadata index (but keep keys).
|
String[] |
getAllItems(int docid)
Obtain all metadata for specified document.
|
int |
getDocument(String key,
String value)
Not implemented.
|
String |
getItem(String key,
int docid)
Obtain metadata of specified type for specified document.
|
String[] |
getItems(String[] keys,
int docid)
Obtain metadata of specified types for specified document.
|
String[][] |
getItems(String[] keys,
int[] docids)
Obtain metadata of specified types for specified documents.
|
String[] |
getItems(String key,
int[] docids)
Obtain metadata of specified type for specified documents.
|
String[] |
getKeys()
Returns the keys of this meta index
|
Iterator<String[]> |
iterator()
Return iterator over meta-data index.
|
String[] |
uncompress(byte[] compressed) |
void |
writeDocumentEntry(int docid,
Map<String,String> data)
Write meta-data for document.
|
void |
writeDocumentEntry(int docid,
String[] data) |
void |
writeDocumentEntry(String[] data)
This method has been made public for creating
|
getKeyLengths, writeDocumentEntrypublic MemoryCompressedMetaIndex(String[] keys, int[] keylengths)
public MemoryCompressedMetaIndex()
public String[] getKeys()
getKeys in interface MetaIndexgetKeys in class MemoryMetaIndexpublic String getItem(String key, int docid) throws IOException
getItem in interface MetaIndexgetItem in class MemoryMetaIndexIOExceptionpublic String[] getAllItems(int docid) throws IOException
getAllItems in interface MetaIndexgetAllItems in class MemoryMetaIndexIOExceptionpublic String[] getItems(String key, int[] docids) throws IOException
getItems in interface MetaIndexgetItems in class MemoryMetaIndexIOExceptionpublic String[] getItems(String[] keys, int docid) throws IOException
getItems in interface MetaIndexgetItems in class MemoryMetaIndexIOExceptionpublic String[][] getItems(String[] keys, int[] docids) throws IOException
getItems in interface MetaIndexgetItems in class MemoryMetaIndexIOExceptionpublic void writeDocumentEntry(int docid,
Map<String,String> data)
throws Exception
Exceptionpublic void writeDocumentEntry(int docid,
String[] data)
writeDocumentEntry in interface MetaIndexMappublic int getDocument(String key, String value) throws IOException
getDocument in interface MetaIndexgetDocument in class MemoryMetaIndexIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class MemoryMetaIndexIOExceptionpublic void writeDocumentEntry(String[] data)
MemoryMetaIndexwriteDocumentEntry in class MemoryMetaIndexpublic Iterator<String[]> iterator()
iterator in class MemoryMetaIndexpublic String[] uncompress(byte[] compressed)
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow