org.drools
Class QueryResult

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

public class QueryResult
extends Object


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

Field Detail

row

protected QueryRowWithSubruleIndex row
Constructor Detail

QueryResult

public QueryResult(QueryRowWithSubruleIndex row,
                   WorkingMemory workingMemory,
                   QueryResults queryResults)
Method Detail

getSubruleIndex

public int getSubruleIndex()

getDeclarations

public Map<String,Declaration> 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 Object get(int i)
Returns the Object for int position in the Tuple

Parameters:
i -
Returns:
The Object

get

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

Parameters:
identifier -
Returns:
The Object

get

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

Parameters:
identifier -
Returns:
The Object

getFactHandle

public FactHandle getFactHandle(String identifier)

getFactHandle

public FactHandle getFactHandle(Declaration declr)

getFactHandle

public FactHandle getFactHandle(int i)

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:


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.