Class QueryResult
java.lang.Object
org.axonframework.axonserver.connector.event.axon.QueryResult
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 Summary
ConstructorsConstructorDescriptionQueryResult(io.axoniq.axonserver.connector.event.EventQueryResultEntry entry) Constructs a QueryResult from the givenentry. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the column information referring to the givenname.The list of columns returned by the query.Returns the identifiers that uniquely identify this result entry.io.axoniq.axonserver.connector.event.EventQueryResultEntryReturns the wrapped entry as returned by the AxonServer Java Connector.Returns the list of values to use to compare the order of this entry to other entries.toString()
-
Constructor Details
-
QueryResult
public QueryResult(io.axoniq.axonserver.connector.event.EventQueryResultEntry entry) Constructs a QueryResult from the givenentry.- Parameters:
entry- the entry to wrap
-
-
Method Details
-
get
Retrieve the column information referring to the givenname.- Parameters:
name- the column name to retrieve information for- Returns:
- the column information referring to the given
name
-
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
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
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
-