Package org.drools.core
Class QueryResultsImpl
java.lang.Object
org.drools.core.QueryResultsImpl
- All Implemented Interfaces:
Iterable<QueryResultsRow>,QueryResults
Returned QueryResults instance for a requested named query. from here you can iterate the returned data, or
get a specific row. All the available Declarations used in the query can also be accessed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Declaration[]protected List<QueryRowWithSubruleIndex>protected ReteEvaluator -
Constructor Summary
ConstructorsConstructorDescriptionQueryResultsImpl(List<QueryRowWithSubruleIndex> results, Map<String, Declaration>[] declarations, ReteEvaluator reteEvaluator, Declaration[] parameters) -
Method Summary
Modifier and TypeMethodDescriptionget(int i) Map<String,Declaration>[] getDeclarations(int subruleIndex) String[]iterator()intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.kie.api.runtime.rule.QueryResults
toList, toList
-
Field Details
-
results
-
reteEvaluator
-
parameters
-
-
Constructor Details
-
QueryResultsImpl
public QueryResultsImpl(List<QueryRowWithSubruleIndex> results, Map<String, Declaration>[] declarations, ReteEvaluator reteEvaluator, Declaration[] parameters)
-
-
Method Details
-
getDeclarations
-
getParameters
-
getDeclarations
-
get
-
size
public int size()- Specified by:
sizein interfaceQueryResults
-
getIdentifiers
- Specified by:
getIdentifiersin interfaceQueryResults
-
iterator
- Specified by:
iteratorin interfaceIterable<QueryResultsRow>- Specified by:
iteratorin interfaceQueryResults
-