|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.document.MapFieldSelector
public class MapFieldSelector
A FieldSelector
based on a Map of field names to FieldSelectorResult
s
Constructor Summary | |
---|---|
MapFieldSelector(List<String> fields)
Create a a MapFieldSelector |
|
MapFieldSelector(Map<String,FieldSelectorResult> fieldSelections)
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public FieldSelectorResult accept(String field)
accept
in interface FieldSelector
field
- a field name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |