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, setPointergetDocumentLength, getFileNumber, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setFileNumber, setOffsetpublic 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
BasicDocumentIndexEntryreadFields in interface org.apache.hadoop.io.WritablereadFields in class BasicDocumentIndexEntryIOExceptionpublic void write(DataOutput out) throws IOException
BasicDocumentIndexEntrywrite in interface org.apache.hadoop.io.Writablewrite in class BasicDocumentIndexEntryIOExceptionpublic String toString()
DocumentIndexEntrytoString in class DocumentIndexEntryTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow