public abstract class DocumentIndexEntry extends Object implements BitIndexPointer, org.apache.hadoop.io.Writable
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
Constructor and Description |
---|
DocumentIndexEntry() |
Modifier and Type | Method and Description |
---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setBitIndexPointer
setOffset
pointerToString, setNumberOfEntries, setPointer
public int getDocumentLength()
public void setDocumentLength(int l)
public int getNumberOfEntries()
getNumberOfEntries
in interface Pointer
public byte getOffsetBits()
getOffsetBits
in interface BitFilePosition
public long getOffset()
getOffset
in interface BitFilePosition
public byte getFileNumber()
getFileNumber
in interface BitIndexPointer
public void setFileNumber(byte fileId)
setFileNumber
in interface BitIndexPointer
public void setOffset(long _bytes, byte _bits)
setOffset
in interface BitFilePosition
Terrier 4.0. Copyright © 2004-2014 University of Glasgow