public class FieldLexiconEntry extends BasicLexiconEntry implements FieldEntryStatistics
Modifier and Type | Class and Description |
---|---|
static class |
FieldLexiconEntry.Factory
Factory for a LexiconEntry
|
Modifier and Type | Field and Description |
---|---|
protected int[] |
fieldFrequencies |
n_t, startBitOffset, startOffset, termId, TF
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
Constructor and Description |
---|
FieldLexiconEntry(int fieldCount)
Construct an instance of the class with
|
FieldLexiconEntry(int[] _fieldFrequencies)
Construct an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
void |
add(EntryStatistics le)
increment this lexicon entry by another
|
int[] |
getFieldFrequencies()
Get the frequencies for each field
|
void |
readFields(DataInput in) |
void |
setFieldFrequencies(int[] _fieldFrequencices)
Set the frequencies for each field
|
String |
toString()
returns a string representation of this lexicon entry
|
void |
write(DataOutput out) |
getDocumentFrequency, getFileNumber, getFrequency, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setFileNumber, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, subtract
equals, getWritableEntryStatistics, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDocumentFrequency, getFrequency, getTermId, getWritableEntryStatistics, subtract
public FieldLexiconEntry(int fieldCount)
fieldCount
- public FieldLexiconEntry(int[] _fieldFrequencies)
_fieldFrequencies
- 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 String toString()
BasicLexiconEntry
toString
in class BasicLexiconEntry
public void add(EntryStatistics le)
BasicLexiconEntry
add
in interface EntryStatistics
add
in class BasicLexiconEntry
Terrier 4.0. Copyright © 2004-2014 University of Glasgow