java.lang.Object
org.axonframework.axonserver.connector.event.axon.QueryResult

public class QueryResult extends Object
Single result row from a Query to the AxonServer.

When applying aggregation functions in the query (e.g., min/max/groupBy/count/avg) you will get values for the identifier. Same identifier may occur more than once as the results get updated.

Since:
4.0
Author:
Marc Gathier
  • Constructor Details

    • QueryResult

      public QueryResult(io.axoniq.axonserver.connector.event.EventQueryResultEntry entry)
      Constructs a QueryResult from the given entry.
      Parameters:
      entry - the entry to wrap
  • Method Details

    • get

      public Object get(String name)
      Retrieve the column information referring to the given name.
      Parameters:
      name - the column name to retrieve information for
      Returns:
      the column information referring to the given name
    • getIdentifiers

      public List<Object> getIdentifiers()
      Returns the identifiers that uniquely identify this result entry. When multiple entries have equal identifier, the second result entry represents an updated version of the first.
      Returns:
      the identifiers of this query result
    • getSortValues

      public List<Object> getSortValues()
      Returns the list of values to use to compare the order of this entry to other entries. Two entries with the same sort values cannot be considered equal, but rather don't have a defined order between them.
      Returns:
      the sort values of this query result
    • getColumns

      public List<String> getColumns()
      The list of columns returned by the query. Will return the same value for all result entries of the same query.
      Returns:
      the names of the columns returned in this entry
    • getQueryResultEntry

      public io.axoniq.axonserver.connector.event.EventQueryResultEntry getQueryResultEntry()
      Returns the wrapped entry as returned by the AxonServer Java Connector.
      Returns:
      the wrapped entry as returned by the AxonServer Java Connector
    • toString

      public String toString()
      Overrides:
      toString in class Object