T - the data typepublic class BasicDataLoader<T> extends Object implements DataLoader<T>
DataLoader.| Constructor and Description |
|---|
BasicDataLoader(TestContext context,
DataModelDefinition<T> definition,
DataModelSourceFactory factory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<T> |
asList()
Returns the loaded data as a list.
|
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.
|
public BasicDataLoader(TestContext context, DataModelDefinition<T> definition, DataModelSourceFactory factory)
context - the current test contextdefinition - the target data definitionfactory - the inputpublic GroupLoader<T> group(String... terms)
DataLoaderKey.group().group in interface DataLoader<T>terms - the property name of each key elementKey.group()public DataLoader<T> order(String... terms)
DataLoaderKey.order().order in interface DataLoader<T>terms - the ordering termKey.order()public DataLoader<T> order(Comparator<? super T> comparator)
DataLoaderorder in interface DataLoader<T>comparator - the object comparatorpublic Stream<T> asStream()
DataLoaderasStream in interface DataLoader<T>public List<T> asList()
DataLoaderasList in interface DataLoader<T>public View<T> asView()
DataLoaderasView in interface DataLoader<T>Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.