org.apache.lucene.document
Class MapFieldSelector
- FieldSelector
public class MapFieldSelector
A FieldSelector based on a Map of field names to FieldSelectorResults
MapFieldSelector
public MapFieldSelector(List fields)
Create a a MapFieldSelector
fields
- fields to LOAD. All other fields are NO_LOAD.
MapFieldSelector
public MapFieldSelector(Map fieldSelections)
Create a a MapFieldSelector
fieldSelections
- maps from field names to FieldSelectorResults
MapFieldSelector
public MapFieldSelector(String[] fields)
Create a a MapFieldSelector
fields
- fields to LOAD. All other fields are NO_LOAD.
accept
public FieldSelectorResult accept(String field)
Load field according to its associated value in fieldSelections
- accept in interface FieldSelector
- the fieldSelections value that field maps to or NO_LOAD if none.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.