Class Tr3BlockLexiconEntry
- java.lang.Object
-
- org.terrier.structures.LexiconEntry
-
- org.terrier.structures.restructure.Tr4BasicLexiconEntry
-
- org.terrier.structures.restructure.Tr3BlockLexiconEntry
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.hadoop.io.Writable
,BitFilePosition
,BitIndexPointer
,BlockEntryStatistics
,EntryStatistics
,Pointer
public class Tr3BlockLexiconEntry extends Tr4BasicLexiconEntry implements BlockEntryStatistics
Deprecated.Blocks lexicon entry. A basic lexicon entry with block statistics.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Tr3BlockLexiconEntry.Factory
Deprecated.Factory for creating block lexicon entries
-
Field Summary
-
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 Tr3BlockLexiconEntry()
Deprecated.Construct an instance of the class.Tr3BlockLexiconEntry(int tid, int n_t, int TF, byte fileId, long _startOffset, byte _startBitOffset, int _blockCount)
Deprecated.Construct an instance of the class withTr3BlockLexiconEntry(int tid, int n_t, int TF, byte fileId, BitFilePosition offset, int _blockCount)
Deprecated.Construct an instance of the class withTr3BlockLexiconEntry(int tid, int n_t, int TF, 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 void
add(EntryStatistics le)
Deprecated.increment this lexicon entry by anotherint
getBlockCount()
Deprecated.The number of blocks that this term has.void
readFields(java.io.DataInput in)
Deprecated.void
subtract(EntryStatistics le)
Deprecated.alter this lexicon entry to subtract another lexicon entryvoid
write(java.io.DataOutput out)
Deprecated.-
Methods inherited from class org.terrier.structures.restructure.Tr4BasicLexiconEntry
getDocumentFrequency, getFileNumber, getFrequency, getMaxFrequencyInDocuments, getNumberOfEntries, getOffset, getOffsetBits, getTermId, pointerToString, setBitIndexPointer, setDocumentFrequency, setFileNumber, setFrequency, setMaxFrequencyInDocuments, setNumberOfEntries, setOffset, setOffset, setPointer, setStatistics, setTermId, 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
getDocumentFrequency, getFrequency, getMaxFrequencyInDocuments, getTermId, getWritableEntryStatistics, setDocumentFrequency, setFrequency, setMaxFrequencyInDocuments
-
-
-
-
Constructor Detail
-
Tr3BlockLexiconEntry
public Tr3BlockLexiconEntry()
Deprecated.Construct an instance of the class.
-
Tr3BlockLexiconEntry
public Tr3BlockLexiconEntry(int tid, int n_t, int TF, byte fileId, BitFilePosition offset, int _blockCount)
Deprecated.Construct an instance of the class with- Parameters:
tid
-n_t
-TF
-fileId
-offset
-_blockCount
-
-
Tr3BlockLexiconEntry
public Tr3BlockLexiconEntry(int tid, int n_t, int TF, byte fileId, long _startOffset, byte _startBitOffset, int _blockCount)
Deprecated.Construct an instance of the class with- Parameters:
tid
-n_t
-TF
-fileId
-_startOffset
-_startBitOffset
-_blockCount
-
-
Tr3BlockLexiconEntry
public Tr3BlockLexiconEntry(int tid, int n_t, int TF, int _blockCount)
Deprecated.Construct an instance of the class with- Parameters:
tid
-n_t
-TF
-_blockCount
-
-
-
Method Detail
-
getBlockCount
public int getBlockCount()
Deprecated.The number of blocks that this term has. Needed by the BlockInvertedIndexBuilder.- Specified by:
getBlockCount
in interfaceBlockEntryStatistics
-
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
-
add
public void add(EntryStatistics le)
Deprecated.increment this lexicon entry by another- Specified by:
add
in interfaceEntryStatistics
- Overrides:
add
in classTr4BasicLexiconEntry
- Parameters:
le
- the other object whose statistics are used to increment the statistics of this object.
-
subtract
public void subtract(EntryStatistics le)
Deprecated.alter this lexicon entry to subtract another lexicon entry- Specified by:
subtract
in interfaceEntryStatistics
- Overrides:
subtract
in classTr4BasicLexiconEntry
- Parameters:
le
- the other object whose statistics are used to decrement the statistics of this object.
-
-