Package su.onno.repository
Class RegisterQueryBuilder<T extends AccumulationRecord>
java.lang.Object
su.onno.repository.RegisterQueryBuilder<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordA(col1, col2, …) IN ((v1, v2, …), …)predicate over a set of dimension tuples. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(LocalDateTime pointInTime) balance()execute()from(LocalDateTime from) Map<String, Collection<?>> <R> RegisterQueryBuilder<T> to(LocalDateTime to) turnover()<R> RegisterQueryBuilder<T> <A,B> RegisterQueryBuilder <T> Restrict a pair of dimensions to a set of tuples — rendered as(colA, colB) IN ((a1, b1), (a2, b2), …).<R> RegisterQueryBuilder<T> whereIn(Field<T, R> field, Collection<R> values) Restrict one dimension to a set of values — rendered ascol IN (…).
-
Constructor Details
-
RegisterQueryBuilder
-
-
Method Details
-
balance
-
turnover
-
at
-
from
-
to
-
groupBy
-
where
-
whereIn
Restrict one dimension to a set of values — rendered ascol IN (…). Lets a caller read balances for exactly the dimension values on a document in a single query instead of fetching the whole slice and filtering in Java. An empty collection matches no rows. Values may be raw column values orRefs (unwrapped to their id). -
whereIn
public <A,B> RegisterQueryBuilder<T> whereIn(Field<T, A> fieldA, Field<T, B> fieldB, Collection<? extends List<?>> tuples) Restrict a pair of dimensions to a set of tuples — rendered as(colA, colB) IN ((a1, b1), (a2, b2), …). This is the register-read analog of 1C'sОстатки(…, (dimA, dimB) В (…)): fetch balances for exactly a document's(dimA, dimB)pairs in one query. An empty collection matches no rows. -
execute
-
getQueryType
-
getAtDate
-
getFromDate
-
getToDate
-
getGroupByFields
-
getFilters
-
getInFilters
-
getTupleFilters
-