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, TFBIT_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, toStringequals, getWritableEntryStatistics, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, getDocumentFrequency, getFrequency, getTermId, getWritableEntryStatistics, subtractprotected 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 FieldEntryStatisticspublic void setFieldFrequencies(int[] _fieldFrequencices)
public void readFields(DataInput in) throws IOException
BasicLexiconEntryreadFields in interface org.apache.hadoop.io.WritablereadFields in class BasicLexiconEntryIOExceptionpublic void write(DataOutput out) throws IOException
BasicLexiconEntrywrite in interface org.apache.hadoop.io.Writablewrite in class BasicLexiconEntryIOExceptionpublic int getBlockCount()
getBlockCount in interface BlockEntryStatisticsTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow