public class FieldDocumentIndexEntry extends BasicDocumentIndexEntry
Modifier and Type | Class and Description |
---|---|
static class |
FieldDocumentIndexEntry.Factory
Factory for creating a field document index entry
|
Modifier and Type | Field and Description |
---|---|
protected int[] |
fieldLengths |
BIT_MASK, FILE_SHIFT, MAX_FILE_ID
Constructor and Description |
---|
FieldDocumentIndexEntry()
Constructs an instance of the class.
|
FieldDocumentIndexEntry(DocumentIndexEntry die)
Constructs an instance of the class with
|
FieldDocumentIndexEntry(int fieldCount)
Constructs an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
int[] |
getFieldLengths()
Get the lengths of each field
|
void |
readFields(DataInput in) |
void |
setFieldLengths(int[] f_lens)
Set the lengths of each field
|
String |
toString() |
void |
write(DataOutput out) |
pointerToString, setBitIndexPointer, setNumberOfEntries, setOffset, setPointer
getDocumentLength, getFileNumber, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setFileNumber, setOffset
public FieldDocumentIndexEntry()
public FieldDocumentIndexEntry(DocumentIndexEntry die)
die
- public FieldDocumentIndexEntry(int fieldCount)
fieldCount
- public int[] getFieldLengths()
public void setFieldLengths(int[] f_lens)
public void readFields(DataInput in) throws IOException
BasicDocumentIndexEntry
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class BasicDocumentIndexEntry
IOException
public void write(DataOutput out) throws IOException
BasicDocumentIndexEntry
write
in interface org.apache.hadoop.io.Writable
write
in class BasicDocumentIndexEntry
IOException
public String toString()
DocumentIndexEntry
toString
in class DocumentIndexEntry
Terrier 4.0. Copyright © 2004-2014 University of Glasgow