Package org.drools.core
Class QueryResultsRowImpl
- java.lang.Object
-
- org.drools.core.QueryResultsRowImpl
-
- All Implemented Interfaces:
org.kie.api.runtime.rule.QueryResultsRow,org.kie.api.runtime.rule.Row
public class QueryResultsRowImpl extends java.lang.Object implements org.kie.api.runtime.rule.QueryResultsRow
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryRowWithSubruleIndexrow
-
Constructor Summary
Constructors Constructor Description QueryResultsRowImpl(QueryRowWithSubruleIndex row, ReteEvaluator reteEvaluator, QueryResultsImpl queryResults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(int i)Returns the Object for int position in the Tuplejava.lang.Objectget(java.lang.String identifier)java.lang.Objectget(org.drools.base.rule.Declaration declaration)Return the Object for the given Declaration.java.util.Map<java.lang.String,org.drools.base.rule.Declaration>getDeclarations()Return a map of Declarations where the key is the identifier and the value is the Declaration.org.kie.api.runtime.rule.FactHandlegetFactHandle(int i)org.kie.api.runtime.rule.FactHandlegetFactHandle(java.lang.String identifier)org.kie.api.runtime.rule.FactHandlegetFactHandle(org.drools.base.rule.Declaration declr)org.kie.api.runtime.rule.FactHandle[]getFactHandles()Return the FactHandles for the Tuple.intgetSubruleIndex()intsize()The size of the Tuple; i.e. the number of columns (FactHandles) in this row result.
-
-
-
Field Detail
-
row
protected QueryRowWithSubruleIndex row
-
-
Constructor Detail
-
QueryResultsRowImpl
public QueryResultsRowImpl(QueryRowWithSubruleIndex row, ReteEvaluator reteEvaluator, QueryResultsImpl queryResults)
-
-
Method Detail
-
getSubruleIndex
public int getSubruleIndex()
-
getDeclarations
public java.util.Map<java.lang.String,org.drools.base.rule.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 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)
- Specified by:
getin interfaceorg.kie.api.runtime.rule.Row
-
get
public java.lang.Object get(org.drools.base.rule.Declaration declaration)
Return the Object for the given Declaration.
-
getFactHandle
public org.kie.api.runtime.rule.FactHandle getFactHandle(java.lang.String identifier)
- Specified by:
getFactHandlein interfaceorg.kie.api.runtime.rule.Row
-
getFactHandle
public org.kie.api.runtime.rule.FactHandle getFactHandle(org.drools.base.rule.Declaration declr)
-
getFactHandle
public org.kie.api.runtime.rule.FactHandle getFactHandle(int i)
-
getFactHandles
public org.kie.api.runtime.rule.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:
-
-