public class MapFieldSelector extends Object implements FieldSelector
Constructor and Description |
---|
MapFieldSelector(List fields)
Create a a MapFieldSelector
|
MapFieldSelector(Map 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 fieldSelections)
fieldSelections
- maps from field names (String) to FieldSelectorResultspublic MapFieldSelector(List 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 nameCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.