graphServer.graph
Class RawQueryHit

java.lang.Object
  extended by graphServer.graph.RawQueryHit

public class RawQueryHit
extends java.lang.Object

RawQueryHit is created when a query has reached a peer and one of that peer's documents are a query hit, the query hit is given a key value as a way of indexing all query hits that ever come occur.

Version:
Date: 18/07/2011
Author:
Matthew Smith

Constructor Summary
RawQueryHit(RawDocument document, RawQuery query)
          Keys the query hit.
 
Method Summary
 RawDocument getDocument()
          Gets the Document which is a query hit.
 int getKey()
          Gets the key value (index) of this query hit
 RawQuery getQuery()
          Gets the RawQuery this query hit corresponds with.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawQueryHit

public RawQueryHit(RawDocument document,
                   RawQuery query)
Keys the query hit.

Parameters:
document - the document identifier which is a query hit
query - the raw query (keyed query string and community) corresponding to this query hit.
Method Detail

getDocument

public RawDocument getDocument()
Gets the Document which is a query hit.

Returns:
The Document which is a query hit.

getQuery

public RawQuery getQuery()
Gets the RawQuery this query hit corresponds with.

Returns:
The RawQuery corresponding to this query hit.

getKey

public int getKey()
Gets the key value (index) of this query hit

Returns:
The key value of this query hit.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object