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, toString
public 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
IOException
public void write(DataOutput out) throws IOException
IOException
public 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 4.0. Copyright © 2004-2014 University of Glasgow