estraier
Interface NodeResult


public interface NodeResult

Abstraction of result set from P2P node.


Method Summary
 int doc_num()
          Get the number of documents.
 ResultDocument get_doc(int index)
          Get a result document object
 java.lang.String hint(java.lang.String key)
          Get the value of hint information.
 

Method Detail

doc_num

public int doc_num()
Get the number of documents.

Returns:
the number of documents.

get_doc

public ResultDocument get_doc(int index)
Get a result document object

Parameters:
index - the index of a document.
Returns:
a result document object or null if the index is out of bounds.

hint

public java.lang.String hint(java.lang.String key)
Get the value of hint information.

Parameters:
key - the key of a hint. "VERSION", "NODE", "HIT", "HINT#n", "DOCNUM", "WORDNUM", "TIME", "LINK#n", and "VIEW" are provided for keys.
Returns:
the value of the hint or null if the key does not exist.