public class BasicDocumentIndexEntry extends DocumentIndexEntry
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicDocumentIndexEntry.Factory
Returna a factory for creating document index entries
|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID| Constructor and Description |
|---|
BasicDocumentIndexEntry()
Constructs an instance of the BasicDocumentIndexEntry.
|
BasicDocumentIndexEntry(DocumentIndexEntry in)
Constructs an instance of the BasicDocumentIndexEntry.
|
BasicDocumentIndexEntry(int length,
BitIndexPointer pointer)
Constructs an instance of the BasicDocumentIndexEntry.
|
BasicDocumentIndexEntry(int length,
byte fileId,
long byteOffset,
byte bitOffset,
int numberOfTerms)
Constructs an instance of the BasicDocumentIndexEntry.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
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, getFileNumber, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setFileNumber, setOffset, toStringpublic BasicDocumentIndexEntry()
public BasicDocumentIndexEntry(DocumentIndexEntry in)
in - public BasicDocumentIndexEntry(int length,
BitIndexPointer pointer)
length - pointer - public BasicDocumentIndexEntry(int length,
byte fileId,
long byteOffset,
byte bitOffset,
int numberOfTerms)
length - fileId - byteOffset - bitOffset - numberOfTerms - public void readFields(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
IOExceptionpublic void setBitIndexPointer(BitIndexPointer pointer)
pointer - - pointer to use to set the offset, bit offset
and file Id parameters.public void setOffset(BitFilePosition pos)
public void setNumberOfEntries(int n)
public String pointerToString()
public void setPointer(Pointer p)
p - other pointer to update the pointer in this objectTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow