Package org.kie.api.runtime.rule
Interface QueryResults
-
- All Superinterfaces:
java.lang.Iterable<QueryResultsRow>
public interface QueryResults extends java.lang.Iterable<QueryResultsRow>
Contains the results of a query. The identifiers is a map of the declarations for the query, only patterns or fields that are bound can be accessed in the QueryResultsRow. This class can be marshalled using the drools-drools-pipeline module in combination with the BatchExecutionHelper. See the BatchExecutionHelper for more details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String[]
getIdentifiers()
java.util.Iterator<QueryResultsRow>
iterator()
int
size()
default java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
toList()
default <T> java.util.List<T>
toList(java.lang.String identifier)
-
-
-
Method Detail
-
getIdentifiers
java.lang.String[] getIdentifiers()
-
iterator
java.util.Iterator<QueryResultsRow> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<QueryResultsRow>
-
size
int size()
-
toList
default java.util.List<java.util.Map<java.lang.String,java.lang.Object>> toList()
-
toList
default <T> java.util.List<T> toList(java.lang.String identifier)
-
-