org.kie.api.runtime.rule

## Interface QueryResults

- All Superinterfaces:
    Iterable<QueryResultsRow>

      public interface QueryResults
      extends 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 and Description
    --- | ---
    `String[]` | `getIdentifiers()`
    `Iterator<QueryResultsRow>` | `iterator()`
    `int` | `size()`
    `default List<Map<String,Object>>` | `toList()`
    `default List<Object>` | `toList(String identifier)`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Method Detail

    - #### getIdentifiers

          String[] getIdentifiers()

    - #### iterator

          Iterator<QueryResultsRow> iterator()

      Specified by:
        `iterator` in interface `Iterable<QueryResultsRow>`

    - #### size

          int size()

    - #### toList

          default List<Map<String,Object>> toList()

    - #### toList

          default List<Object> toList(String identifier)

Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.