public abstract class FSOMapFileLexiconOutputStreamGeneric<T1,T2 extends org.apache.hadoop.io.WritableComparable<?>> extends LexiconOutputStream<T1>
| Modifier and Type | Field and Description |
|---|---|
protected IndexOnDisk |
index |
protected FixedSizeWriteableFactory<T2> |
keyFactory |
protected String |
leValueClassname |
protected FSOrderedMapFile.MapFileWriter |
mapFileWriter |
protected String |
structureName |
protected T2 |
tempKey |
lexiconStream, numPointersWritten, numTermsWritten, numTokensWritten| Constructor and Description |
|---|
FSOMapFileLexiconOutputStreamGeneric(IndexOnDisk _index,
String _structureName,
Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) |
FSOMapFileLexiconOutputStreamGeneric(IndexOnDisk _index,
String _structureName,
FixedSizeWriteableFactory<T2> _keyFactory,
Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) |
FSOMapFileLexiconOutputStreamGeneric(IndexOnDisk _index,
String _structureName,
FixedSizeWriteableFactory<T2> _keyFactory,
String valueFactoryClassName) |
FSOMapFileLexiconOutputStreamGeneric(String filename,
FixedSizeWriteableFactory<T2> _keyFactory) |
FSOMapFileLexiconOutputStreamGeneric(String path,
String prefix,
String _structureName,
FixedSizeWriteableFactory<T2> _keyFactory) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLexiconToIndex(IndexOnDisk index,
String structureName,
Class<? extends Lexicon<?>> lexClass,
Class<? extends Iterator<?>> lexInputStreamClass,
Class<? extends Iterator<LexiconEntry>> lexEntryInputStreamClass,
String leValueClassname)
Adds Lexicon to index
|
void |
close()
Closes the lexicon stream.
|
protected abstract void |
setKey(T1 k) |
int |
writeNextEntry(T1 _key,
LexiconEntry _value)
Writes a lexicon entry.
|
getNumberOfPointersWritten, getNumberOfTermsWritten, getNumberOfTokensWritten, incrementCountersprotected FixedSizeWriteableFactory<T2 extends org.apache.hadoop.io.WritableComparable<?>> keyFactory
protected final T2 extends org.apache.hadoop.io.WritableComparable<?> tempKey
protected final FSOrderedMapFile.MapFileWriter mapFileWriter
protected IndexOnDisk index
protected String leValueClassname
protected final String structureName
public FSOMapFileLexiconOutputStreamGeneric(String path, String prefix, String _structureName, FixedSizeWriteableFactory<T2> _keyFactory) throws IOException
IOExceptionpublic FSOMapFileLexiconOutputStreamGeneric(IndexOnDisk _index, String _structureName, Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) throws IOException
IOExceptionpublic FSOMapFileLexiconOutputStreamGeneric(IndexOnDisk _index, String _structureName, FixedSizeWriteableFactory<T2> _keyFactory, Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) throws IOException
IOExceptionpublic FSOMapFileLexiconOutputStreamGeneric(IndexOnDisk _index, String _structureName, FixedSizeWriteableFactory<T2> _keyFactory, String valueFactoryClassName) throws IOException
IOExceptionpublic FSOMapFileLexiconOutputStreamGeneric(String filename, FixedSizeWriteableFactory<T2> _keyFactory) throws IOException
IOExceptionpublic int writeNextEntry(T1 _key, LexiconEntry _value) throws IOException
LexiconOutputStreamwriteNextEntry in class LexiconOutputStream<T1>_key - the key - usually the term_value - the lexicon entry valueIOException - if an I/O error occursprotected abstract void setKey(T1 k)
public void close()
LexiconOutputStreamclose in interface Closeableclose in interface AutoCloseableclose in class LexiconOutputStream<T1>public static void addLexiconToIndex(IndexOnDisk index, String structureName, Class<? extends Lexicon<?>> lexClass, Class<? extends Iterator<?>> lexInputStreamClass, Class<? extends Iterator<LexiconEntry>> lexEntryInputStreamClass, String leValueClassname)
index - structureName - leValueClassname - Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow