Class QueryResultsImpl

  • All Implemented Interfaces:
    java.lang.Iterable<org.kie.api.runtime.rule.QueryResultsRow>, org.kie.api.runtime.rule.QueryResults

    public class QueryResultsImpl
    extends java.lang.Object
    implements org.kie.api.runtime.rule.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.
    • Method Detail

      • getDeclarations

        public java.util.Map<java.lang.String,​Declaration>[] getDeclarations()
      • getDeclarations

        public java.util.Map<java.lang.String,​Declaration> getDeclarations​(int subruleIndex)
      • size

        public int size()
        Specified by:
        size in interface org.kie.api.runtime.rule.QueryResults
      • getIdentifiers

        public java.lang.String[] getIdentifiers()
        Specified by:
        getIdentifiers in interface org.kie.api.runtime.rule.QueryResults
      • iterator

        public java.util.Iterator<org.kie.api.runtime.rule.QueryResultsRow> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<org.kie.api.runtime.rule.QueryResultsRow>
        Specified by:
        iterator in interface org.kie.api.runtime.rule.QueryResults