org.terrier.structures
Class BlockFieldLexiconEntry
java.lang.Object
org.terrier.structures.LexiconEntry
org.terrier.structures.BasicLexiconEntry
org.terrier.structures.BlockFieldLexiconEntry
- All Implemented Interfaces:
- java.io.Serializable, org.apache.hadoop.io.Writable, BitFilePosition, BitIndexPointer, BlockEntryStatistics, EntryStatistics, FieldEntryStatistics, Pointer
public class BlockFieldLexiconEntry
- extends BasicLexiconEntry
- implements FieldEntryStatistics, BlockEntryStatistics
A LexiconEntry with field support
- See Also:
- Serialized Form
Methods inherited from class org.terrier.structures.BasicLexiconEntry |
add, getDocumentFrequency, getFileNumber, getFrequency, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setFileNumber, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, subtract, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
fieldFrequencies
protected final int[] fieldFrequencies
blockCount
protected int blockCount
BlockFieldLexiconEntry
public BlockFieldLexiconEntry(int fieldCount)
- Constructs an instance of the class with
- Parameters:
fieldCount
-
BlockFieldLexiconEntry
public BlockFieldLexiconEntry(int[] _fieldFrequencies,
int _blockCount)
- Construct an instance of the class with
- Parameters:
_fieldFrequencies
- _blockCount
-
getFieldFrequencies
public int[] getFieldFrequencies()
- Get the frequencies for each field
- Specified by:
getFieldFrequencies
in interface FieldEntryStatistics
setFieldFrequencies
public void setFieldFrequencies(int[] _fieldFrequencices)
- Sets the frequencies for each field
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Description copied from class:
BasicLexiconEntry
-
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class BasicLexiconEntry
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Description copied from class:
BasicLexiconEntry
-
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class BasicLexiconEntry
- Throws:
java.io.IOException
getBlockCount
public int getBlockCount()
- The number of blocks that this term has.
Needed by the BlockInvertedIndexBuilder.
- Specified by:
getBlockCount
in interface BlockEntryStatistics
Terrier 3.5. Copyright © 2004-2011 University of Glasgow