FacetResult (Google App Engine API for Java)

com.google.appengine.api.search

Class FacetResult

  • java.lang.Object
    • com.google.appengine.api.search.FacetResult
  • All Implemented Interfaces:
    java.io.Serializable


    public final class FacetResult
    extends java.lang.Object
    implements java.io.Serializable
    Represents a facet result computed from an extended search result set. A facet result contains a name, a type, and a set of values. Name is a single facet name and each value has a label and a count. The value label can be a single facet value name, or a range label (in "[start,end)" format).
    See Also:
    Serialized Form
    • Method Detail

      • getValues

        public java.util.List<FacetResultValue> getValues()
        The list of facet values computed during search. Each value result has a label, count, and refinement token.
        Returns:
        an unmodifiable list of values
      • getName

        public java.lang.String getName()
        Name of this facet result that is a single facet name.
        Returns:
        name as string
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object