public class BlockFieldLexiconEntry extends BasicLexiconEntry implements FieldEntryStatistics, BlockEntryStatistics
Modifier and Type | Class and Description |
---|---|
static class |
BlockFieldLexiconEntry.Factory
Factory for creating LexiconEntries
|
Modifier and Type | Field and Description |
---|---|
protected int |
blockCount |
protected int[] |
fieldFrequencies |
n_t, startBitOffset, startOffset, termId, TF
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
Constructor and Description |
---|
BlockFieldLexiconEntry(int fieldCount)
Constructs an instance of the class with
|
BlockFieldLexiconEntry(int[] _fieldFrequencies,
int _blockCount)
Construct an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
int |
getBlockCount()
The number of blocks that this term has.
|
int[] |
getFieldFrequencies()
Get the frequencies for each field
|
void |
readFields(DataInput in) |
void |
setFieldFrequencies(int[] _fieldFrequencices)
Sets the frequencies for each field
|
void |
write(DataOutput out) |
add, getDocumentFrequency, getFileNumber, getFrequency, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setFileNumber, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, subtract, toString
equals, getWritableEntryStatistics, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, getDocumentFrequency, getFrequency, getTermId, getWritableEntryStatistics, subtract
protected final int[] fieldFrequencies
protected int blockCount
public BlockFieldLexiconEntry(int fieldCount)
fieldCount
- public BlockFieldLexiconEntry(int[] _fieldFrequencies, int _blockCount)
_fieldFrequencies
- _blockCount
- public int[] getFieldFrequencies()
getFieldFrequencies
in interface FieldEntryStatistics
public void setFieldFrequencies(int[] _fieldFrequencices)
public void readFields(DataInput in) throws IOException
BasicLexiconEntry
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class BasicLexiconEntry
IOException
public void write(DataOutput out) throws IOException
BasicLexiconEntry
write
in interface org.apache.hadoop.io.Writable
write
in class BasicLexiconEntry
IOException
public int getBlockCount()
getBlockCount
in interface BlockEntryStatistics
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow