|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.structures.LexiconInputStream uk.ac.gla.terrier.structures.BlockLexiconInputStream
public class BlockLexiconInputStream
An input stream for accessing sequentially the entries of a block lexicon.
Constructor Summary | |
---|---|
BlockLexiconInputStream()
A default constructor. |
|
BlockLexiconInputStream(java.io.DataInput in)
Read a lexicon from the specified input stream |
|
BlockLexiconInputStream(java.io.File file)
A constructor given the filename. |
|
BlockLexiconInputStream(java.lang.String filename)
A constructor given the filename. |
|
BlockLexiconInputStream(java.lang.String path,
java.lang.String prefix)
|
Method Summary | |
---|---|
int |
getBlockFrequency()
Returns the block frequency for the currently processed term. |
int |
numberOfEntries()
Returns the number of entries in the lexicon file. |
void |
print()
Prints out the contents of the lexicon file to check. |
int |
readNextEntry()
Read the next lexicon entry. |
Methods inherited from class uk.ac.gla.terrier.structures.LexiconInputStream |
---|
close, getEndBitOffset, getEndOffset, getEntrySize, getNt, getNumberOfPointersRead, getNumberOfTermsRead, getNumberOfTokensRead, getStartBitOffset, getStartOffset, getTerm, getTermCharacters, getTermId, getTF, iterator, readNextEntryBytes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockLexiconInputStream()
public BlockLexiconInputStream(java.lang.String filename)
filename
- java.lang.String the name of the lexicon file.public BlockLexiconInputStream(java.lang.String path, java.lang.String prefix)
public BlockLexiconInputStream(java.io.File file)
file
- java.io.File the name of the lexicon file.public BlockLexiconInputStream(java.io.DataInput in)
Method Detail |
---|
public int readNextEntry() throws java.io.IOException
readNextEntry
in class LexiconInputStream
java.io.IOException
- if an I/O error occurspublic int numberOfEntries()
numberOfEntries
in class LexiconInputStream
public void print()
print
in class LexiconInputStream
public int getBlockFrequency()
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |