|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.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.File file)
A constructor given the filename. |
|
BlockLexiconInputStream(java.lang.String filename)
A constructor given the filename. |
|
| 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, 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.io.File file)
file - java.io.File the name of the lexicon file.| Method Detail |
|---|
public int readNextEntry()
throws java.io.IOException
readNextEntry in class LexiconInputStreamjava.io.IOException - if an I/O error occurspublic int numberOfEntries()
numberOfEntries in class LexiconInputStreampublic void print()
print in class LexiconInputStreampublic int getBlockFrequency()
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||