|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.searcher.HitDetails
public final class 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 url)
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. |
String[] |
getValues(String field)
Returns all the values with the specified name. |
static HitDetails |
read(DataInput in)
Constructs, reads and returns an instance. |
void |
readFields(DataInput in)
|
String |
toHtml()
Display as HTML. |
String |
toString()
Display as a string. |
void |
write(DataOutput 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 url)
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 String[] getValues(String field)
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public static HitDetails read(DataInput in) throws IOException
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public String toString()
toString
in class Object
public String toHtml()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |