|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.DocumentIndexEntry org.terrier.structures.SimpleDocumentIndexEntry
public class SimpleDocumentIndexEntry
A document index entry that doesn't write out direct index offset.
Nested Class Summary | |
---|---|
static class |
SimpleDocumentIndexEntry.Factory
Factory for the creation of DocumentIndexEntry objects |
Field Summary |
---|
Fields inherited from interface org.terrier.structures.BitIndexPointer |
---|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID |
Constructor Summary | |
---|---|
SimpleDocumentIndexEntry()
Construct an instance of the class. |
|
SimpleDocumentIndexEntry(DocumentIndexEntry die)
Construct an instance of the class with |
Method Summary | |
---|---|
byte |
getFileNumber()
Returns the file number: 0-32 |
java.lang.String |
pointerToString()
Returns a textual representation of the pointer alone |
void |
readFields(java.io.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(java.io.DataOutput out)
|
Methods inherited from class org.terrier.structures.DocumentIndexEntry |
---|
getDocumentLength, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setOffset, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleDocumentIndexEntry()
public SimpleDocumentIndexEntry(DocumentIndexEntry die)
die
- Method Detail |
---|
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(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |