public class MapFieldSelector extends Object implements FieldSelector
FieldSelector
based on a Map of field names to FieldSelectorResult
sConstructor and Description |
---|
MapFieldSelector(List<String> fields)
Create a a MapFieldSelector
|
MapFieldSelector(Map<String,FieldSelectorResult> fieldSelections)
Create a a MapFieldSelector
|
MapFieldSelector(String... fields)
Create a a MapFieldSelector
|
Modifier and Type | Method and Description |
---|---|
FieldSelectorResult |
accept(String field)
Load field according to its associated value in fieldSelections
|
public MapFieldSelector(Map<String,FieldSelectorResult> fieldSelections)
fieldSelections
- maps from field names (String) to FieldSelectorResult
spublic MapFieldSelector(List<String> fields)
fields
- fields to LOAD. List of Strings. All other fields are NO_LOAD.public MapFieldSelector(String... fields)
fields
- fields to LOAD. All other fields are NO_LOAD.public FieldSelectorResult accept(String field)
accept
in interface FieldSelector
field
- a field name