public class SimpleDocumentIndexEntry extends DocumentIndexEntry
Modifier and Type | Class and Description |
---|---|
static class |
SimpleDocumentIndexEntry.Factory
Factory for the creation of DocumentIndexEntry objects
|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
Constructor and Description |
---|
SimpleDocumentIndexEntry()
Construct an instance of the class.
|
SimpleDocumentIndexEntry(DocumentIndexEntry die)
Construct an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
byte |
getFileNumber()
Returns the file number: 0-32
|
String |
pointerToString()
Returns a textual representation of the pointer alone
|
void |
readFields(DataInput in) |
void |
setBitIndexPointer(BitIndexPointer pointer)
Update this pointer to reflect the same values as the specified
pointer
|
void |
setFileNumber(byte fileId)
Set the file number
|
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 out) |
getDocumentLength, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setOffset, toString
public SimpleDocumentIndexEntry()
public SimpleDocumentIndexEntry(DocumentIndexEntry die)
die
- public void setNumberOfEntries(int n)
public void setOffset(BitFilePosition pos)
public void setBitIndexPointer(BitIndexPointer pointer)
pointer
- - pointer to use to set the offset, bit offset
and file Id parameters.public void readFields(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
public String pointerToString()
public void setPointer(Pointer p)
p
- other pointer to update the pointer in this objectpublic byte getFileNumber()
getFileNumber
in interface BitIndexPointer
getFileNumber
in class DocumentIndexEntry
public void setFileNumber(byte fileId)
setFileNumber
in interface BitIndexPointer
setFileNumber
in class DocumentIndexEntry
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow