Documentation of 'org.apache.lucene.document.MapFieldSelector' Java class
MapFieldSelector
org.apache.lucene.document

Class MapFieldSelector

  • All Implemented Interfaces:
    java.io.Serializable, FieldSelector


    public class MapFieldSelector
    extends java.lang.Object
    implements FieldSelector
    A FieldSelector based on a Map of field names to FieldSelectorResults
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      FieldSelectorResult accept(java.lang.String field)
      Load field according to its associated value in fieldSelections
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapFieldSelector

        public MapFieldSelector(java.util.Map fieldSelections)
        Create a a MapFieldSelector
        Parameters:
        fieldSelections - maps from field names (String) to FieldSelectorResults
      • MapFieldSelector

        public MapFieldSelector(java.util.List fields)
        Create a a MapFieldSelector
        Parameters:
        fields - fields to LOAD. List of Strings. All other fields are NO_LOAD.
      • MapFieldSelector

        public MapFieldSelector(java.lang.String[] fields)
        Create a a MapFieldSelector
        Parameters:
        fields - fields to LOAD. All other fields are NO_LOAD.
    • Method Detail

      • accept

        public FieldSelectorResult accept(java.lang.String field)
        Load field according to its associated value in fieldSelections
        Specified by:
        accept in interface FieldSelector
        Parameters:
        field - a field name
        Returns:
        the fieldSelections value that field maps to or NO_LOAD if none.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.