org.apache.lucene.document
public class MapFieldSelector extends Object implements FieldSelector
| Constructor Summary | |
|---|---|
| MapFieldSelector(Map fieldSelections) Create a a MapFieldSelector | |
| MapFieldSelector(List fields) Create a a MapFieldSelector | |
| MapFieldSelector(String[] fields) Create a a MapFieldSelector | |
| Method Summary | |
|---|---|
| FieldSelectorResult | accept(String field) Load field according to its associated value in fieldSelections |
Parameters: fieldSelections maps from field names (String) to FieldSelectorResults
Parameters: fields fields to LOAD. List of Strings. All other fields are NO_LOAD.
Parameters: fields fields to LOAD. All other fields are NO_LOAD.
Parameters: field a field name
Returns: the fieldSelections value that field maps to or NO_LOAD if none.