|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.LexiconEntry org.terrier.structures.BasicLexiconEntry org.terrier.structures.FieldLexiconEntry
public class FieldLexiconEntry
A LexiconEntry with field support
Nested Class Summary | |
---|---|
static class |
FieldLexiconEntry.Factory
Factory for a LexiconEntry |
Field Summary | |
---|---|
protected int[] |
fieldFrequencies
|
Fields inherited from class org.terrier.structures.BasicLexiconEntry |
---|
n_t, startBitOffset, startOffset, termId, TF |
Fields inherited from interface org.terrier.structures.BitIndexPointer |
---|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID |
Constructor Summary | |
---|---|
FieldLexiconEntry(int fieldCount)
Construct an instance of the class with |
|
FieldLexiconEntry(int[] _fieldFrequencies)
Construct an instance of the class with |
Method Summary | |
---|---|
void |
add(EntryStatistics le)
increment this lexicon entry by another |
int[] |
getFieldFrequencies()
Get the frequencies for each field |
void |
readFields(java.io.DataInput in)
|
void |
setFieldFrequencies(int[] _fieldFrequencices)
Set the frequencies for each field |
java.lang.String |
toString()
returns a string representation of this lexicon entry |
void |
write(java.io.DataOutput out)
|
Methods inherited from class org.terrier.structures.BasicLexiconEntry |
---|
getDocumentFrequency, getFileNumber, getFrequency, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setFileNumber, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, subtract |
Methods inherited from class org.terrier.structures.LexiconEntry |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.terrier.structures.EntryStatistics |
---|
getDocumentFrequency, getFrequency, getTermId, subtract |
Field Detail |
---|
protected final int[] fieldFrequencies
Constructor Detail |
---|
public FieldLexiconEntry(int fieldCount)
fieldCount
- public FieldLexiconEntry(int[] _fieldFrequencies)
_fieldFrequencies
- Method Detail |
---|
public int[] getFieldFrequencies()
getFieldFrequencies
in interface FieldEntryStatistics
public void setFieldFrequencies(int[] _fieldFrequencices)
public void readFields(java.io.DataInput in) throws java.io.IOException
BasicLexiconEntry
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class BasicLexiconEntry
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
BasicLexiconEntry
write
in interface org.apache.hadoop.io.Writable
write
in class BasicLexiconEntry
java.io.IOException
public java.lang.String toString()
BasicLexiconEntry
toString
in class BasicLexiconEntry
public void add(EntryStatistics le)
BasicLexiconEntry
add
in interface EntryStatistics
add
in class BasicLexiconEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |