public abstract class MetaIndexBuilder extends Object implements Closeable
Lookups in the resulting <MetaIndex are supported in two manners - either by docid, or for specified key
types, by value. In the latter scenario, metadata values are assumed to be unique.
Typical usage during indexing:
MetaIndexBuilder metaBuilder = ...
while(collection.nextDocument())
{
Document d = collection.getDocument();
metaBuilder.writeDocumentEntry(d.getAllProperties());
}
| Constructor and Description |
|---|
MetaIndexBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
writeDocumentEntry(Map<String,String> data)
Write out metadata for current document, extracted from specified map
Typically, the MetaIndexBuilder will know which keys from data that
it is interested in.
|
abstract void |
writeDocumentEntry(String[] data)
Write out metadata for current document.
|
public abstract void writeDocumentEntry(Map<String,String> data) throws IOException
IOExceptionpublic abstract void writeDocumentEntry(String[] data) throws IOException
IOExceptionTerrier 4.0. Copyright © 2004-2014 University of Glasgow