Class SearchRangeFacet

  • All Implemented Interfaces:
    Facet

    public class SearchRangeFacet
    extends Object
    implements Facet
    • Constructor Detail

      • SearchRangeFacet

        public SearchRangeFacet()
      • SearchRangeFacet

        public SearchRangeFacet​(String fieldName)
    • Method Detail

      • getFieldName

        public String getFieldName()
        Description copied from interface: Facet
        The field from your schema upon which to apply your facet.
        Specified by:
        getFieldName in interface Facet
        Returns:
        The field name
      • getType

        public String getType()
        Description copied from interface: Facet
        Type of facet
        Specified by:
        getType in interface Facet
        Returns:
        The facet type
      • getName

        public String getName()
        Name given to facet
        Specified by:
        getName in interface Facet
        Returns:
        the name
      • getCenter

        public GeoLocation getCenter()
        The mode of the distribution, specified as a latitude-longitude pair
        Returns:
        the center
      • getUnit

        public GeoLocation.Unit getUnit()
        The base unit of measurement
        Returns:
        the unit
      • getRanges

        public List<Range> getRanges()
        An array of range objects
        Returns:
        The ranges
      • setFieldName

        public SearchRangeFacet setFieldName​(String fieldName)
        Description copied from interface: Facet
        Set the field upon which to apply your facet.
        Specified by:
        setFieldName in interface Facet
        Parameters:
        fieldName - The name of the field
        Returns:
        this.
      • setName

        public SearchRangeFacet setName​(String name)
        Name given to facet
        Parameters:
        name - The name
        Returns:
        this.
      • setCenter

        public SearchRangeFacet setCenter​(GeoLocation center)
        The mode of the distribution, specified as a latitude-longitude pair
        Parameters:
        center - the center
        Returns:
        this.
      • setRanges

        public SearchRangeFacet setRanges​(List<Range> ranges)
        An array of range objects
        Parameters:
        ranges - The ranges
        Returns:
        this.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object