public class FSOMapFileLexicon extends FSOMapFileLexiconGeneric<String,org.apache.hadoop.io.Text>
Index Properties:
Modifier and Type | Class and Description |
---|---|
static class |
FSOMapFileLexicon.MapFileLexiconEntryIterator |
static class |
FSOMapFileLexicon.MapFileLexiconIterator |
MapLexicon.Id2EntryIndexLookup, MapLexicon.IdIsIndex
Lexicon.LexiconFileEntry<KEY2>
Modifier and Type | Field and Description |
---|---|
static String |
HASH_EXT |
ID_EXT, MAPFILE_EXT
keyFactory, map, modificationLock
Constructor and Description |
---|
FSOMapFileLexicon(String structureName,
IndexOnDisk index)
Construct a new FSOMapFileLexicon
|
FSOMapFileLexicon(String structureName,
String path,
String prefix,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory,
FixedSizeWriteableFactory<LexiconEntry> _valueFactory,
String termIdLookup,
String termLookup,
String dataFile) |
Modifier and Type | Method and Description |
---|---|
static void |
deleteMapFileLexicon(String structureName,
String path,
String prefix)
Delete a FSOMapFileLexicon within the specified index location
|
Iterator<Map.Entry<String,LexiconEntry>> |
iterator() |
static void |
renameMapFileLexicon(String SrcStructureName,
String SrcPath,
String SrcPrefix,
String destStructureName,
String destPath,
String destPrefix)
Rename a FSOMapFileLexicon within the specified index location
|
protected void |
setK2(String key,
org.apache.hadoop.io.Text instance) |
protected String |
toK1(org.apache.hadoop.io.Text key) |
constructFilename
close, getIthLexiconEntry, getLexiconEntry, getLexiconEntry, getLexiconEntryRange, numberOfEntries, setTermIdLookup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final String HASH_EXT
public FSOMapFileLexicon(String structureName, IndexOnDisk index) throws IOException
IOException
public FSOMapFileLexicon(String structureName, String path, String prefix, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory, FixedSizeWriteableFactory<LexiconEntry> _valueFactory, String termIdLookup, String termLookup, String dataFile) throws IOException
IOException
public Iterator<Map.Entry<String,LexiconEntry>> iterator()
protected String toK1(org.apache.hadoop.io.Text key)
toK1
in class MapLexicon<String,org.apache.hadoop.io.Text>
protected void setK2(String key, org.apache.hadoop.io.Text instance)
setK2
in class MapLexicon<String,org.apache.hadoop.io.Text>
public static void renameMapFileLexicon(String SrcStructureName, String SrcPath, String SrcPrefix, String destStructureName, String destPath, String destPrefix)
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow