Package org.terrier.structures
Class FSOMapFileLexiconGeneric<K1,K2 extends org.apache.hadoop.io.WritableComparable>
- java.lang.Object
-
- org.terrier.structures.Lexicon<K1>
-
- org.terrier.structures.MapLexicon<K1,K2>
-
- org.terrier.structures.FSOMapFileLexiconGeneric<K1,K2>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Iterable<java.util.Map.Entry<K1,LexiconEntry>>
- Direct Known Subclasses:
FSOMapFileLexicon
public abstract class FSOMapFileLexiconGeneric<K1,K2 extends org.apache.hadoop.io.WritableComparable> extends MapLexicon<K1,K2>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FSOMapFileLexiconGeneric.MapFileLexiconEntryIterator<T extends org.apache.hadoop.io.WritableComparable<?>>
Iterate through the values in orderstatic class
FSOMapFileLexiconGeneric.MapFileLexiconIterator<T1,T2 extends org.apache.hadoop.io.WritableComparable<?>>
An iterator over the lexicon-
Nested classes/interfaces inherited from class org.terrier.structures.MapLexicon
MapLexicon.Id2EntryIndexLookup, MapLexicon.IdIsIndex
-
Nested classes/interfaces inherited from class org.terrier.structures.Lexicon
Lexicon.LexiconFileEntry<KEY2>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID_EXT
static java.lang.String
MAPFILE_EXT
-
Fields inherited from class org.terrier.structures.MapLexicon
keyFactory, map, modificationLock
-
-
Constructor Summary
Constructors Constructor Description FSOMapFileLexiconGeneric(java.lang.String structureName, java.lang.String path, java.lang.String prefix, FixedSizeWriteableFactory<K2> _keyFactory, FixedSizeWriteableFactory<LexiconEntry> _valueFactory, java.lang.String termIdLookup, java.lang.String dataFile)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
constructFilename(java.lang.String structureName, java.lang.String path, java.lang.String prefix, java.lang.String extension)
Constructs a filename-
Methods inherited from class org.terrier.structures.MapLexicon
close, getIthLexiconEntry, getLexiconEntry, getLexiconEntry, getLexiconEntryRange, numberOfEntries, setK2, setTermIdLookup, toK1
-
-
-
-
Field Detail
-
ID_EXT
public static final java.lang.String ID_EXT
- See Also:
- Constant Field Values
-
MAPFILE_EXT
public static final java.lang.String MAPFILE_EXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FSOMapFileLexiconGeneric
public FSOMapFileLexiconGeneric(java.lang.String structureName, java.lang.String path, java.lang.String prefix, FixedSizeWriteableFactory<K2> _keyFactory, FixedSizeWriteableFactory<LexiconEntry> _valueFactory, java.lang.String termIdLookup, java.lang.String dataFile) throws java.io.IOException
- Throws:
java.io.IOException
-
-