Package org.terrier.structures
Class NonIncrementalDocumentIndexEntry
- java.lang.Object
-
- org.terrier.structures.DocumentIndexEntry
-
- org.terrier.structures.BasicDocumentIndexEntry
-
- org.terrier.structures.NonIncrementalDocumentIndexEntry
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
,BitFilePosition
,BitIndexPointer
,Pointer
public class NonIncrementalDocumentIndexEntry extends BasicDocumentIndexEntry
This class is created to represent aDocumentIndexEntry
that do not assume an incremental docids, but instead maintains the docid.- Since:
- 4.0
- Author:
- Dyaa Albakour
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NonIncrementalDocumentIndexEntry.Factory
Returna a factory for creating document index entries
-
Field Summary
-
Fields inherited from interface org.terrier.structures.BitIndexPointer
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
-
-
Constructor Summary
Constructors Constructor Description NonIncrementalDocumentIndexEntry()
NonIncrementalDocumentIndexEntry(int docid)
NonIncrementalDocumentIndexEntry(int length, byte fileId, long byteOffset, byte bitOffset, int numberOfTerms, int docid)
NonIncrementalDocumentIndexEntry(DocumentIndexEntry in, int docid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDocid()
void
readFields(java.io.DataInput in)
void
setDocid(int docid)
void
write(java.io.DataOutput out)
-
Methods inherited from class org.terrier.structures.BasicDocumentIndexEntry
pointerToString, setBitIndexPointer, setNumberOfEntries, setOffset, setPointer
-
Methods inherited from class org.terrier.structures.DocumentIndexEntry
getDocumentLength, getFileNumber, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setFileNumber, setOffset, toString
-
-
-
-
Constructor Detail
-
NonIncrementalDocumentIndexEntry
public NonIncrementalDocumentIndexEntry()
-
NonIncrementalDocumentIndexEntry
public NonIncrementalDocumentIndexEntry(int docid)
-
NonIncrementalDocumentIndexEntry
public NonIncrementalDocumentIndexEntry(DocumentIndexEntry in, int docid)
-
NonIncrementalDocumentIndexEntry
public NonIncrementalDocumentIndexEntry(int length, byte fileId, long byteOffset, byte bitOffset, int numberOfTerms, int docid)
-
-
Method Detail
-
getDocid
public int getDocid()
-
readFields
public void readFields(java.io.DataInput in) throws java.io.IOException
Description copied from class:BasicDocumentIndexEntry
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
readFields
in classBasicDocumentIndexEntry
- Throws:
java.io.IOException
-
write
public void write(java.io.DataOutput out) throws java.io.IOException
Description copied from class:BasicDocumentIndexEntry
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
write
in classBasicDocumentIndexEntry
- Throws:
java.io.IOException
-
setDocid
public void setDocid(int docid)
-
-