Class Tr3BlockFieldLexiconEntry
- java.lang.Object
-
- org.terrier.structures.LexiconEntry
-
- org.terrier.structures.restructure.Tr4BasicLexiconEntry
-
- org.terrier.structures.restructure.Tr3BlockFieldLexiconEntry
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.hadoop.io.Writable
,BitFilePosition
,BitIndexPointer
,BlockEntryStatistics
,EntryStatistics
,FieldEntryStatistics
,Pointer
@Deprecated public class Tr3BlockFieldLexiconEntry extends Tr4BasicLexiconEntry implements FieldEntryStatistics, BlockEntryStatistics
Deprecated.A LexiconEntry with field support- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Tr3BlockFieldLexiconEntry.Factory
Deprecated.Factory for creating LexiconEntries
-
Field Summary
Fields Modifier and Type Field Description protected int
blockCount
Deprecated.protected int[]
fieldFrequencies
Deprecated.-
Fields inherited from class org.terrier.structures.restructure.Tr4BasicLexiconEntry
maxtf, n_t, startBitOffset, startOffset, termId, TF
-
Fields inherited from interface org.terrier.structures.BitIndexPointer
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
-
-
Constructor Summary
Constructors Constructor Description Tr3BlockFieldLexiconEntry(int fieldCount)
Deprecated.Constructs an instance of the class withTr3BlockFieldLexiconEntry(int[] _fieldFrequencies, int _blockCount)
Deprecated.Construct an instance of the class with
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getBlockCount()
Deprecated.The number of blocks that this term has.int[]
getFieldFrequencies()
Deprecated.Return the frequencies (total numbers of occurrences) of the term for each field.void
readFields(java.io.DataInput in)
Deprecated.void
setFieldFrequencies(int[] _fieldFrequencices)
Deprecated.Sets the frequencies for each fieldvoid
write(java.io.DataOutput out)
Deprecated.-
Methods inherited from class org.terrier.structures.restructure.Tr4BasicLexiconEntry
add, getDocumentFrequency, getFileNumber, getFrequency, getMaxFrequencyInDocuments, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setDocumentFrequency, setFileNumber, setFrequency, setMaxFrequencyInDocuments, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, subtract, toString
-
Methods inherited from class org.terrier.structures.LexiconEntry
equals, getWritableEntryStatistics, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.terrier.structures.EntryStatistics
add, getDocumentFrequency, getFrequency, getMaxFrequencyInDocuments, getTermId, getWritableEntryStatistics, setDocumentFrequency, setFrequency, setMaxFrequencyInDocuments, subtract
-
-
-
-
Constructor Detail
-
Tr3BlockFieldLexiconEntry
public Tr3BlockFieldLexiconEntry(int fieldCount)
Deprecated.Constructs an instance of the class with- Parameters:
fieldCount
-
-
Tr3BlockFieldLexiconEntry
public Tr3BlockFieldLexiconEntry(int[] _fieldFrequencies, int _blockCount)
Deprecated.Construct an instance of the class with- Parameters:
_fieldFrequencies
-_blockCount
-
-
-
Method Detail
-
getFieldFrequencies
public int[] getFieldFrequencies()
Deprecated.Return the frequencies (total numbers of occurrences) of the term for each field.- Specified by:
getFieldFrequencies
in interfaceFieldEntryStatistics
- Returns:
- the frequencies (total numbers of occurrences) of the term for each field.
-
setFieldFrequencies
public void setFieldFrequencies(int[] _fieldFrequencices)
Deprecated.Sets the frequencies for each field
-
readFields
public void readFields(java.io.DataInput in) throws java.io.IOException
Deprecated.Description copied from class:Tr4BasicLexiconEntry
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
readFields
in classTr4BasicLexiconEntry
- Throws:
java.io.IOException
-
write
public void write(java.io.DataOutput out) throws java.io.IOException
Deprecated.Description copied from class:Tr4BasicLexiconEntry
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
write
in classTr4BasicLexiconEntry
- Throws:
java.io.IOException
-
getBlockCount
public int getBlockCount()
Deprecated.The number of blocks that this term has. Needed by the BlockInvertedIndexBuilder.- Specified by:
getBlockCount
in interfaceBlockEntryStatistics
-
-