graphServer.graph
Class RawQuery

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

public class RawQuery
extends java.lang.Object

RawQuery is created when a peer sends out a query, the query is given a key value as a way of indexing all querys that are ever output. The community is the community the query is requested in. The queryString is what was actually queried

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

Constructor Summary
RawQuery(java.lang.String community, java.lang.String queryString)
          Keys the query.
 
Method Summary
 java.lang.String getCommunity()
          Gets the community this query comes from.
 int getKey()
          Gets the key value (index) of this query
 java.lang.String getQueryString()
          Gets the String that was queried
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawQuery

public RawQuery(java.lang.String community,
                java.lang.String queryString)
Keys the query.

Parameters:
community - the community the query is requested in.
queryString - String which was actually queried
Method Detail

getQueryString

public java.lang.String getQueryString()
Gets the String that was queried

Returns:
The text string which was queried

getCommunity

public java.lang.String getCommunity()
Gets the community this query comes from.

Returns:
The community of this query.

getKey

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

Returns:
The key value of this query.

toString

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