T - the data typepublic interface DataLoader<T>
| Modifier and Type | Method and Description |
|---|---|
List<T> |
asList()
Returns the loaded data as a list.
|
default Stream<T> |
asStream()
Returns the loaded data as a stream.
|
View<T> |
asView()
Returns the loaded data as a view.
|
GroupLoader<T> |
group(String... terms)
Configures the grouping key of the organizing dataset.
|
DataLoader<T> |
order(Comparator<? super T> comparator)
Configures the sort order of the organizing dataset.
|
DataLoader<T> |
order(String... terms)
Configures the sort order of the organizing dataset.
|
GroupLoader<T> group(String... terms)
Key.group().terms - the property name of each key elementKey.group()DataLoader<T> order(String... terms)
Key.order().terms - the ordering termIllegalStateException - if sort order is already configuredKey.order()DataLoader<T> order(Comparator<? super T> comparator)
comparator - the object comparatorIllegalStateException - if sort order is already configureddefault Stream<T> asStream()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.