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 classTr3BlockFieldLexiconEntry.FactoryDeprecated.Factory for creating LexiconEntries
-
Field Summary
Fields Modifier and Type Field Description protected intblockCountDeprecated.protected int[]fieldFrequenciesDeprecated.-
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 intgetBlockCount()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.voidreadFields(java.io.DataInput in)Deprecated.voidsetFieldFrequencies(int[] _fieldFrequencices)Deprecated.Sets the frequencies for each fieldvoidwrite(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:
getFieldFrequenciesin 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.IOExceptionDeprecated.Description copied from class:Tr4BasicLexiconEntry- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classTr4BasicLexiconEntry- Throws:
java.io.IOException
-
write
public void write(java.io.DataOutput out) throws java.io.IOExceptionDeprecated.Description copied from class:Tr4BasicLexiconEntry- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein classTr4BasicLexiconEntry- Throws:
java.io.IOException
-
getBlockCount
public int getBlockCount()
Deprecated.The number of blocks that this term has. Needed by the BlockInvertedIndexBuilder.- Specified by:
getBlockCountin interfaceBlockEntryStatistics
-
-