|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.searcher.HitDetails
Data stored in the index for a hit.
Represented as a list of name/value pairs.
Constructor Summary | |
HitDetails()
|
|
HitDetails(String[] fields,
String[] values)
Construct from field names and values arrays. |
|
HitDetails(String segment,
String docNo)
Construct minimal details from a segment name and document number. |
Method Summary | |
String |
getField(int i)
Returns the name of the i th field. |
int |
getLength()
Returns the number of fields contained in this. |
String |
getValue(int i)
Returns the value of the i th field. |
String |
getValue(String field)
Returns the value of the first field with the specified name. |
static HitDetails |
read(DataInput in)
Constructs, reads and returns an instance. |
void |
readFields(DataInput in)
Reads the fields of this object from in . |
String |
toHtml()
Display as HTML. |
String |
toString()
Display as a string. |
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HitDetails()
public HitDetails(String[] fields, String[] values)
public HitDetails(String segment, String docNo)
Method Detail |
public int getLength()
public String getField(int i)
i
th field.
public String getValue(int i)
i
th field.
public String getValue(String field)
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public static HitDetails read(DataInput in) throws IOException
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public String toString()
public String toHtml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |