public interface Query<T extends DataSource>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Query.Compare<U,V> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allMatch(Specification<? super T> predicate) |
default boolean |
any() |
boolean |
anyMatch(Specification<? super T> predicate) |
long |
count() |
Query<T> |
filter(Specification<T> predicate) |
Optional<T> |
findAny() |
Optional<T> |
findFirst() |
Query<T> |
limit(long n) |
List<T> |
list() |
boolean |
noneMatch(Specification<? super T> predicate) |
Query<T> |
skip(long n) |
<V> Query<T> |
sortedBy(Query.Compare<T,V> order) |
<V> Query<T> |
sortedDescendingBy(Query.Compare<T,V> order) |
default Stream<T> |
stream() |
Query<T> filter(Specification<T> predicate)
<V> Query<T> sortedBy(Query.Compare<T,V> order)
<V> Query<T> sortedDescendingBy(Query.Compare<T,V> order)
long count()
throws IOException
IOExceptionboolean anyMatch(Specification<? super T> predicate) throws IOException
IOExceptiondefault boolean any()
throws IOException
IOExceptionboolean allMatch(Specification<? super T> predicate) throws IOException
IOExceptionboolean noneMatch(Specification<? super T> predicate) throws IOException
IOExceptionOptional<T> findFirst() throws IOException
IOExceptionOptional<T> findAny() throws IOException
IOExceptionList<T> list() throws IOException
IOExceptiondefault Stream<T> stream() throws IOException
IOExceptionCopyright © 2016. All rights reserved.