Save This Page
Home » nutch-1.0 » org.apache.nutch » searcher » [javadoc | source]
org.apache.nutch.searcher
public final class: HitDetails [javadoc | source]
java.lang.Object
   org.apache.nutch.searcher.HitDetails

All Implemented Interfaces:
    org.apache.hadoop.io.Writable

Data stored in the index for a hit.

Represented as a list of name/value pairs.
Constructor:
 public HitDetails() 
 public HitDetails(String[] fields,
    String[] values) 
    Construct from field names and values arrays.
 public HitDetails(String segment,
    String url) 
    Construct minimal details from a segment name and document number.
Method from org.apache.nutch.searcher.HitDetails Summary:
getField,   getLength,   getValue,   getValue,   getValues,   read,   readFields,   toHtml,   toString,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.nutch.searcher.HitDetails Detail:
 public String getField(int i) 
    Returns the name of the ith field.
 public int getLength() 
    Returns the number of fields contained in this.
 public String getValue(int i) 
    Returns the value of the ith field.
 public String getValue(String field) 
    Returns the value of the first field with the specified name.
 public String[] getValues(String field) 
    Returns all the values with the specified name.
 public static HitDetails read(DataInput in) throws IOException 
    Constructs, reads and returns an instance.
 public  void readFields(DataInput in) throws IOException 
 public String toHtml() 
    Display as HTML.
 public String toString() 
    Display as a string.
 public  void write(DataOutput out) throws IOException