org.apache.lucene.document
public class MapFieldSelector extends java.lang.Object implements FieldSelector
FieldSelector
based on a Map of field names to FieldSelectorResult
sConstructor and Description |
---|
MapFieldSelector(java.util.List fields)
Create a a MapFieldSelector
|
MapFieldSelector(java.util.Map fieldSelections)
Create a a MapFieldSelector
|
MapFieldSelector(java.lang.String[] fields)
Create a a MapFieldSelector
|
Modifier and Type | Method and Description |
---|---|
FieldSelectorResult |
accept(java.lang.String field)
Load field according to its associated value in fieldSelections
|
public MapFieldSelector(java.util.Map fieldSelections)
fieldSelections
- maps from field names (String) to FieldSelectorResult
spublic MapFieldSelector(java.util.List fields)
fields
- fields to LOAD. List of Strings. All other fields are NO_LOAD.public MapFieldSelector(java.lang.String[] fields)
fields
- fields to LOAD. All other fields are NO_LOAD.public FieldSelectorResult accept(java.lang.String field)
accept
in interface FieldSelector
field
- a field nameCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.