public class MultiDocumentEntry extends DocumentIndexEntry
BIT_MASK, FILE_SHIFT, MAX_FILE_ID| Constructor and Description |
|---|
MultiDocumentEntry(DocumentIndexEntry entry,
int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDocumentIndexShardIndex() |
String |
pointerToString()
Returns a textual representation of the pointer alone
|
void |
readFields(DataInput arg0) |
void |
setBitIndexPointer(BitIndexPointer pointer)
Update this pointer to reflect the same values as the specified
pointer
|
void |
setDocumentIndexShardIndex(int documentIndexShardIndex) |
void |
setNumberOfEntries(int n)
Set the number of "things that the pointer refers to
|
void |
setOffset(BitFilePosition pos)
Set the offset
|
void |
setPointer(Pointer p)
Sets the pointer within this object to that represented by
the specified pointer
|
void |
write(DataOutput arg0) |
getDocumentLength, getFileNumber, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setFileNumber, setOffset, toStringpublic MultiDocumentEntry(DocumentIndexEntry entry, int index)
public void setBitIndexPointer(BitIndexPointer pointer)
BitIndexPointerpointer - - pointer to use to set the offset, bit offset
and file Id parameters.public void setOffset(BitFilePosition pos)
BitFilePositionpublic void readFields(DataInput arg0) throws IOException
IOExceptionpublic void write(DataOutput arg0) throws IOException
IOExceptionpublic void setNumberOfEntries(int n)
Pointerpublic String pointerToString()
Pointerpublic void setPointer(Pointer p)
Pointerp - other pointer to update the pointer in this objectpublic int getDocumentIndexShardIndex()
public void setDocumentIndexShardIndex(int documentIndexShardIndex)
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow