com.sun.labs.minion.indexer.entry
Interface EntryMapper
- All Known Implementing Classes:
- DocEntryMapper, LongNameEntryMapper
public interface EntryMapper
An interface that can be used when merging dictionaries to map one entry
to another. This will be especially useful in cases where we need to
remap entry names and entry IDs, such as when we are merging document
dictionaries or when we are merging the document ID to entries
dictionaries in the field store.
Instances of implementations of this class will be passed to DiskDictionary.merge(IndexEntry, com.sun.labs.minion.indexer.dictionary.NameEncoder, com.sun.labs.minion.indexer.partition.PartitionStats, com.sun.labs.minion.indexer.dictionary.DiskDictionary[], EntryMapper[], int[], int[][], java.io.RandomAccessFile, com.sun.labs.minion.indexer.postings.io.PostingsOutput[], boolean)
map
Entry map(Entry e)
- Maps one entry to another.
- Parameters:
e
- The entry to map.
- Returns:
- The mapped entry, or
null
if this entry should
not be included in a merged dictionary. It is up to classes using
the entry mapper to account for this case!