org.drools
Class QueryResult

java.lang.Object
  extended by org.drools.QueryResult

public class QueryResult
extends java.lang.Object


Field Summary
protected  Tuple tuple
           
 
Constructor Summary
QueryResult(Tuple tuple, WorkingMemory workingMemory, QueryResults queryResults)
           
 
Method Summary
 java.lang.Object get(Declaration declaration)
          Return the Object for the given Declaration.
 java.lang.Object get(int i)
          Returns the Object for int position in the Tuple
 java.lang.Object get(java.lang.String identifier)
          Return the Object for the given Declaration identifer.
 java.util.Map getDeclarations()
          Return a map of Declarations where the key is the identifier and the value is the Declaration.
 FactHandle[] getFactHandles()
          Return the FactHandles for the Tuple.
 int size()
          The size of the Tuple; i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tuple

protected Tuple tuple
Constructor Detail

QueryResult

public QueryResult(Tuple tuple,
                   WorkingMemory workingMemory,
                   QueryResults queryResults)
Method Detail

getDeclarations

public java.util.Map getDeclarations()
Return a map of Declarations where the key is the identifier and the value is the Declaration.

Returns:
The Map of Declarations.

get

public java.lang.Object get(int i)
Returns the Object for int position in the Tuple

Parameters:
i -
Returns:
The Object

get

public java.lang.Object get(java.lang.String identifier)
Return the Object for the given Declaration identifer.

Parameters:
identifier -
Returns:
The Object

get

public java.lang.Object get(Declaration declaration)
Return the Object for the given Declaration.

Parameters:
identifier -
Returns:
The Object

getFactHandles

public FactHandle[] getFactHandles()
Return the FactHandles for the Tuple.

Returns:

size

public int size()
The size of the Tuple; i.e. the number of columns (FactHandles) in this row result.

Returns: