Package tech.ydb.yoj.repository.db.list
Class InMemoryQueries
java.lang.Object
tech.ydb.yoj.repository.db.list.InMemoryQueries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(@NonNull StreamSupplier<T> streamSupplier, FilterExpression<T> filter, OrderExpression<T> orderBy, Integer limit, Long offset) static <T extends Entity<T>>
ListResult<T>list(@NonNull StreamSupplier<T> streamSupplier, @NonNull ListRequest<T> request) static <T extends Entity<T>>
Comparator<T>toComparator(@NonNull OrderExpression<T> orderBy) static <T> Predicate<T>toPredicate(@NonNull FilterExpression<T> filter)
-
Constructor Details
-
InMemoryQueries
public InMemoryQueries()
-
-
Method Details
-
list
public static <T extends Entity<T>> ListResult<T> list(@NonNull @NonNull StreamSupplier<T> streamSupplier, @NonNull @NonNull ListRequest<T> request) -
find
public static <T extends Entity<T>> List<T> find(@NonNull @NonNull StreamSupplier<T> streamSupplier, @Nullable FilterExpression<T> filter, @Nullable OrderExpression<T> orderBy, @Nullable Integer limit, @Nullable Long offset) -
toPredicate
-
toComparator
public static <T extends Entity<T>> Comparator<T> toComparator(@NonNull @NonNull OrderExpression<T> orderBy)
-