public interface EventQueryResultEntry
Entries may represent an update to previous entries. The getIdentifiers() result will be equal to the entry
that it is an update for. The number of entries will be the same for all results of the same query.
If entries represent an ordered result, the getSortValues() will return a list of values to sort on. The
number of values will be equal in all entries for the same query.
| Modifier and Type | Method and Description |
|---|---|
List<String> |
columns()
The list of columns returned by the query.
|
List<Object> |
getIdentifiers()
Returns the identifiers that uniquely identify this result entry.
|
List<Object> |
getSortValues()
Returns the list of values to use to compare the order of this entry to other entries.
|
<R> R |
getValue(String column)
Returns the value for the given
column, casting it to the desired type. |
default boolean |
getValueAsBoolean(String column)
Returns the
boolean value associated with the given column. |
default double |
getValueAsDouble(String column)
Returns the
double value associated with the given column. |
default long |
getValueAsLong(String column)
Returns the
long value associated with the given column. |
default String |
getValueAsString(String column)
Returns the
String value associated with the given column. |
List<String> columns()
<R> R getValue(String column)
column, casting it to the desired type.
R - the type to cast the result tocolumn - the name of the column to return the data forList<Object> getIdentifiers()
List<Object> getSortValues()
default String getValueAsString(String column)
String value associated with the given column.column - the name of the column to return the value forClassCastException - when the value associated with the column is not a Stringdefault long getValueAsLong(String column)
long value associated with the given column.column - the name of the column to return the value forClassCastException - when the value associated with the column is not a longdefault double getValueAsDouble(String column)
double value associated with the given column.column - the name of the column to return the value forClassCastException - when the value associated with the column is not a doubledefault boolean getValueAsBoolean(String column)
boolean value associated with the given column.column - the name of the column to return the value forClassCastException - when the value associated with the column is not a booleanCopyright © 2020–2022 AxonIQ BV. All rights reserved.