Package org.onyx.api
Class Action.SumBuilder
- Enclosing class:
Action
A builder class for querying actionsums in the ledger.
-
Field Summary
Fields inherited from class org.onyx.api.BaseQueryBuilder
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroupByField(String field) Adds a field along which action values will be summed.getIterable(Client client) Executes the query, returning an iterable over actionsums that match the query.Executes the query, returning a page of actionsums that match the query.Executes the query, returning a page of actionsums that match the query beginning with provided cursor.setGroupBy(List<String> groupBy) Specifies the fields along which action values will be summed.Methods inherited from class org.onyx.api.BaseQueryBuilder
addFilterParameter, setFilter, setFilterParameters, setPageSize
-
Constructor Details
-
SumBuilder
public SumBuilder()
-
-
Method Details
-
getPage
Executes the query, returning a page of actionsums that match the query.- Specified by:
getPagein classBaseQueryBuilder<Action.SumBuilder>- Parameters:
client- ledger API connection object- Returns:
- a page of actionsums
- Throws:
ChainException
-
getPage
Executes the query, returning a page of actionsums that match the query beginning with provided cursor.- Parameters:
client- ledger API connection objectcursor- string representing encoded query object- Returns:
- a page of actionsums
- Throws:
ChainException
-
getIterable
Executes the query, returning an iterable over actionsums that match the query.- Specified by:
getIterablein classBaseQueryBuilder<Action.SumBuilder>- Parameters:
client- ledger API connection object- Returns:
- an iterable over actionsums
- Throws:
ChainException
-
setGroupBy
Specifies the fields along which action values will be summed.- Parameters:
groupBy- a list of action fields- Returns:
- updated builder
-
addGroupByField
Adds a field along which action values will be summed.- Parameters:
field- name of a action field- Returns:
- updated builder
-