|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.LexiconEntry
org.terrier.structures.BasicLexiconEntry
org.terrier.structures.BlockLexiconEntry
public class BlockLexiconEntry
Blocks lexicon entry. A basic lexicon entry with block statistics.
| Nested Class Summary | |
|---|---|
static class |
BlockLexiconEntry.Factory
Factory for creating block lexicon entries |
| Field Summary |
|---|
| Fields inherited from class org.terrier.structures.BasicLexiconEntry |
|---|
n_t, startBitOffset, startOffset, termId, TF |
| Fields inherited from interface org.terrier.structures.BitIndexPointer |
|---|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID |
| Constructor Summary | |
|---|---|
BlockLexiconEntry()
Construct an instance of the class. |
|
BlockLexiconEntry(int tid,
int n_t,
int TF,
byte fileId,
BitFilePosition offset,
int _blockCount)
Construct an instance of the class with |
|
BlockLexiconEntry(int tid,
int n_t,
int TF,
byte fileId,
long _startOffset,
byte _startBitOffset,
int _blockCount)
Construct an instance of the class with |
|
BlockLexiconEntry(int tid,
int n_t,
int TF,
int _blockCount)
Construct an instance of the class with |
|
| Method Summary | |
|---|---|
void |
add(EntryStatistics le)
increment this lexicon entry by another |
int |
getBlockCount()
The number of blocks that this term has. |
void |
readFields(DataInput in)
|
void |
subtract(EntryStatistics le)
alter this lexicon entry to subtract another lexicon entry |
void |
write(DataOutput out)
|
| Methods inherited from class org.terrier.structures.BasicLexiconEntry |
|---|
getDocumentFrequency, getFileNumber, getFrequency, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setFileNumber, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, toString |
| Methods inherited from class org.terrier.structures.LexiconEntry |
|---|
equals, getWritableEntryStatistics, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.terrier.structures.EntryStatistics |
|---|
getDocumentFrequency, getFrequency, getTermId, getWritableEntryStatistics |
| Constructor Detail |
|---|
public BlockLexiconEntry()
public BlockLexiconEntry(int tid,
int n_t,
int TF,
byte fileId,
BitFilePosition offset,
int _blockCount)
tid - n_t - TF - fileId - offset - _blockCount -
public BlockLexiconEntry(int tid,
int n_t,
int TF,
byte fileId,
long _startOffset,
byte _startBitOffset,
int _blockCount)
tid - n_t - TF - fileId - _startOffset - _startBitOffset - _blockCount -
public BlockLexiconEntry(int tid,
int n_t,
int TF,
int _blockCount)
tid - n_t - TF - _blockCount - | Method Detail |
|---|
public int getBlockCount()
getBlockCount in interface BlockEntryStatistics
public void readFields(DataInput in)
throws IOException
BasicLexiconEntry
readFields in interface org.apache.hadoop.io.WritablereadFields in class BasicLexiconEntryIOException
public void write(DataOutput out)
throws IOException
BasicLexiconEntry
write in interface org.apache.hadoop.io.Writablewrite in class BasicLexiconEntryIOExceptionpublic void add(EntryStatistics le)
add in interface EntryStatisticsadd in class BasicLexiconEntrypublic void subtract(EntryStatistics le)
subtract in interface EntryStatisticssubtract in class BasicLexiconEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||