public class NonIncrementalDocumentIndexEntry extends BasicDocumentIndexEntry
DocumentIndexEntry
that
do not assume an incremental docids, but instead maintains the docid.Modifier and Type | Class and Description |
---|---|
static class |
NonIncrementalDocumentIndexEntry.Factory
Returna a factory for creating document index entries
|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
Constructor and Description |
---|
NonIncrementalDocumentIndexEntry() |
NonIncrementalDocumentIndexEntry(DocumentIndexEntry in,
int docid) |
NonIncrementalDocumentIndexEntry(int docid) |
NonIncrementalDocumentIndexEntry(int length,
byte fileId,
long byteOffset,
byte bitOffset,
int numberOfTerms,
int docid) |
Modifier and Type | Method and Description |
---|---|
int |
getDocid() |
void |
readFields(DataInput in) |
void |
setDocid(int docid) |
void |
write(DataOutput out) |
pointerToString, setBitIndexPointer, setNumberOfEntries, setOffset, setPointer
getDocumentLength, getFileNumber, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setFileNumber, setOffset, toString
public NonIncrementalDocumentIndexEntry()
public NonIncrementalDocumentIndexEntry(int docid)
public NonIncrementalDocumentIndexEntry(DocumentIndexEntry in, int docid)
public NonIncrementalDocumentIndexEntry(int length, byte fileId, long byteOffset, byte bitOffset, int numberOfTerms, int docid)
public int getDocid()
public void readFields(DataInput in) throws IOException
BasicDocumentIndexEntry
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class BasicDocumentIndexEntry
IOException
public void write(DataOutput out) throws IOException
BasicDocumentIndexEntry
write
in interface org.apache.hadoop.io.Writable
write
in class BasicDocumentIndexEntry
IOException
public void setDocid(int docid)
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow