|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.DocumentIndexEntry
public abstract class DocumentIndexEntry
A document index entry. Also acts as a pointer into the direct index.
| Field Summary |
|---|
| Fields inherited from interface org.terrier.structures.BitIndexPointer |
|---|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID |
| Constructor Summary | |
|---|---|
DocumentIndexEntry()
|
|
| Method Summary | |
|---|---|
int |
getDocumentLength()
Get the length of the document |
byte |
getFileNumber()
Returns the file number: 0-32 |
int |
getNumberOfEntries()
Returns number of "things" that this pointer refers to |
long |
getOffset()
Return the offset |
byte |
getOffsetBits()
Return the offset bits |
void |
setDocumentLength(int l)
Set the length of the document |
void |
setFileNumber(byte fileId)
Set the file number |
void |
setOffset(long _bytes,
byte _bits)
Set the offset in bytes and bits |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.terrier.structures.BitIndexPointer |
|---|
setBitIndexPointer |
| Methods inherited from interface org.terrier.structures.BitFilePosition |
|---|
setOffset |
| Methods inherited from interface org.apache.hadoop.io.Writable |
|---|
readFields, write |
| Methods inherited from interface org.terrier.structures.Pointer |
|---|
pointerToString, setNumberOfEntries, setPointer |
| Constructor Detail |
|---|
public DocumentIndexEntry()
| Method Detail |
|---|
public int getDocumentLength()
public void setDocumentLength(int l)
public int getNumberOfEntries()
getNumberOfEntries in interface Pointerpublic byte getOffsetBits()
getOffsetBits in interface BitFilePositionpublic long getOffset()
getOffset in interface BitFilePositionpublic byte getFileNumber()
getFileNumber in interface BitIndexPointerpublic void setFileNumber(byte fileId)
setFileNumber in interface BitIndexPointer
public void setOffset(long _bytes,
byte _bits)
setOffset in interface BitFilePositionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||