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, toString
public MultiDocumentEntry(DocumentIndexEntry entry, int index)
public void setBitIndexPointer(BitIndexPointer pointer)
BitIndexPointer
pointer
- - pointer to use to set the offset, bit offset
and file Id parameters.public void setOffset(BitFilePosition pos)
BitFilePosition
public void readFields(DataInput arg0) throws IOException
IOException
public void write(DataOutput arg0) throws IOException
IOException
public void setNumberOfEntries(int n)
Pointer
public String pointerToString()
Pointer
public void setPointer(Pointer p)
Pointer
p
- other pointer to update the pointer in this objectpublic int getDocumentIndexShardIndex()
public void setDocumentIndexShardIndex(int documentIndexShardIndex)
Terrier 4.0. Copyright © 2004-2014 University of Glasgow