public class Tr4FieldLexiconEntry extends Tr4BasicLexiconEntry implements FieldEntryStatistics
Modifier and Type | Class and Description |
---|---|
static class |
Tr4FieldLexiconEntry.Factory
Factory for a LexiconEntry
|
Modifier and Type | Field and Description |
---|---|
protected int[] |
fieldFrequencies |
maxtf, n_t, startBitOffset, startOffset, termId, TF
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
Constructor and Description |
---|
Tr4FieldLexiconEntry(int fieldCount)
Construct an instance of the class with
|
Tr4FieldLexiconEntry(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, getMaxFrequencyInDocuments, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setDocumentFrequency, setFileNumber, setFrequency, setMaxFrequencyInDocuments, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, subtract
equals, getWritableEntryStatistics, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDocumentFrequency, getFrequency, getMaxFrequencyInDocuments, getTermId, getWritableEntryStatistics, setDocumentFrequency, setFrequency, setMaxFrequencyInDocuments, subtract
public Tr4FieldLexiconEntry(int fieldCount)
fieldCount
- public Tr4FieldLexiconEntry(int[] _fieldFrequencies)
_fieldFrequencies
- public int[] getFieldFrequencies()
getFieldFrequencies
in interface FieldEntryStatistics
public void setFieldFrequencies(int[] _fieldFrequencices)
public void readFields(DataInput in) throws IOException
Tr4BasicLexiconEntry
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class Tr4BasicLexiconEntry
IOException
public void write(DataOutput out) throws IOException
Tr4BasicLexiconEntry
write
in interface org.apache.hadoop.io.Writable
write
in class Tr4BasicLexiconEntry
IOException
public String toString()
Tr4BasicLexiconEntry
toString
in class Tr4BasicLexiconEntry
public void add(EntryStatistics le)
Tr4BasicLexiconEntry
add
in interface EntryStatistics
add
in class Tr4BasicLexiconEntry
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow