You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is pretty common querying by a property p1 and then sort using p2. Fully supporting this (or similar patterns) involves adding complexity to indexes (which I don't like), or having a proper Query interface. For the second option, Queries are built on an element type, and have methods (them or query builders, whatever)
/* for building queries */
<X> Query<FT> and(
Property<FT,X> property,
QueryPredicate.Comparepredicate,
Xvalue
);
<X> Query<FT> or(
Property<FT,X> property,
QueryPredicate.Comparepredicate,
Xvalue
);
/* this the equivalent of executing the query */Stream<V> orderByWithLimit(Property<FT,?> property, Intmax);
As for the implementation, we could store inside the query a list of predicates together with how they are combined.
No description provided.
The text was updated successfully, but these errors were encountered: