|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.DocumentIndexEntry
org.terrier.structures.BasicDocumentIndexEntry
org.terrier.structures.FieldDocumentIndexEntry
public class FieldDocumentIndexEntry
A document index entry for use with fields
| Nested Class Summary | |
|---|---|
static class |
FieldDocumentIndexEntry.Factory
Factory for creating a field document index entry |
| Field Summary | |
|---|---|
protected int[] |
fieldLengths
|
| Fields inherited from interface org.terrier.structures.BitIndexPointer |
|---|
BIT_MASK, FILE_SHIFT, MAX_FILE_ID |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
int[] |
getFieldLengths()
Get the lengths of each field |
void |
readFields(java.io.DataInput in)
|
void |
setFieldLengths(int[] f_lens)
Set the lengths of each field |
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
|
| Methods inherited from class org.terrier.structures.BasicDocumentIndexEntry |
|---|
pointerToString, setBitIndexPointer, setNumberOfEntries, setOffset, setPointer |
| Methods inherited from class org.terrier.structures.DocumentIndexEntry |
|---|
getDocumentLength, getFileNumber, getNumberOfEntries, getOffset, getOffsetBits, setDocumentLength, setFileNumber, setOffset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] fieldLengths
| Constructor Detail |
|---|
public FieldDocumentIndexEntry()
public FieldDocumentIndexEntry(DocumentIndexEntry die)
die - public FieldDocumentIndexEntry(int fieldCount)
fieldCount - | Method Detail |
|---|
public int[] getFieldLengths()
public void setFieldLengths(int[] f_lens)
public void readFields(java.io.DataInput in)
throws java.io.IOException
BasicDocumentIndexEntry
readFields in interface org.apache.hadoop.io.WritablereadFields in class BasicDocumentIndexEntryjava.io.IOException
public void write(java.io.DataOutput out)
throws java.io.IOException
BasicDocumentIndexEntry
write in interface org.apache.hadoop.io.Writablewrite in class BasicDocumentIndexEntryjava.io.IOExceptionpublic java.lang.String toString()
DocumentIndexEntry
toString in class DocumentIndexEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||