public class FSOMapFileLexiconOutputStream extends FSOMapFileLexiconOutputStreamGeneric<String,org.apache.hadoop.io.Text>
index, keyFactory, leValueClassname, mapFileWriter, structureName, tempKey
lexiconStream, numPointersWritten, numTermsWritten, numTokensWritten
Constructor and Description |
---|
FSOMapFileLexiconOutputStream(IndexOnDisk _index,
String _structureName,
Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) |
FSOMapFileLexiconOutputStream(IndexOnDisk _index,
String _structureName,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory,
Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) |
FSOMapFileLexiconOutputStream(IndexOnDisk _index,
String _structureName,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory,
String valueFactoryClassName) |
FSOMapFileLexiconOutputStream(String filename,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory) |
FSOMapFileLexiconOutputStream(String path,
String prefix,
String _structureName,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory) |
Modifier and Type | Method and Description |
---|---|
static void |
addLexiconToIndex(IndexOnDisk index,
String structureName,
String leValueClassname)
Adds Lexicon to index
|
void |
close()
Closes the lexicon stream.
|
protected void |
setKey(String k) |
addLexiconToIndex, writeNextEntry
getNumberOfPointersWritten, getNumberOfTermsWritten, getNumberOfTokensWritten, incrementCounters
public FSOMapFileLexiconOutputStream(IndexOnDisk _index, String _structureName, Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) throws IOException
IOException
public FSOMapFileLexiconOutputStream(IndexOnDisk _index, String _structureName, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory, Class<? extends FixedSizeWriteableFactory<LexiconEntry>> valueFactoryClass) throws IOException
IOException
public FSOMapFileLexiconOutputStream(IndexOnDisk _index, String _structureName, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory, String valueFactoryClassName) throws IOException
IOException
public FSOMapFileLexiconOutputStream(String filename, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory) throws IOException
IOException
public FSOMapFileLexiconOutputStream(String path, String prefix, String _structureName, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> _keyFactory) throws IOException
IOException
protected void setKey(String k)
setKey
in class FSOMapFileLexiconOutputStreamGeneric<String,org.apache.hadoop.io.Text>
public void close()
LexiconOutputStream
close
in interface Closeable
close
in interface AutoCloseable
close
in class FSOMapFileLexiconOutputStreamGeneric<String,org.apache.hadoop.io.Text>
public static void addLexiconToIndex(IndexOnDisk index, String structureName, String leValueClassname)
index
- structureName
- leValueClassname
- Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow