Java 8 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Java 8
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Java
8 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Java.
FacetResult (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
- 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
-
-
Nested Class Summary
Nested Classes
Modifier and Type |
Class and Description |
static class |
FacetResult.Builder
A builder of facet result.
|
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eFacetResult\u003c/code\u003e represents a result from an extended search, containing a name, type, and a set of values.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetName\u003c/code\u003e method returns the single facet name of the result as a string.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetValues\u003c/code\u003e method provides an unmodifiable list of facet values, each with a label, count, and refinement token.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003enewBuilder\u003c/code\u003e static method facilitates the creation of a \u003ccode\u003eFacetResult\u003c/code\u003e instance via its associated \u003ccode\u003eBuilder\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFacetResult\u003c/code\u003e is a serializable class, indicated by its implementation of \u003ccode\u003ejava.io.Serializable\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# FacetResult (Google App Engine API for Java)\n\ncom.google.appengine.api.search\n\nClass FacetResult\n-----------------\n\n- java.lang.Object\n-\n - com.google.appengine.api.search.FacetResult\n\n-\n\n All Implemented Interfaces:\n : java.io.Serializable\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n public final class FacetResult\n extends java.lang.Object\n implements java.io.Serializable\n ``` \n 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).\n\n See Also:\n: [Serialized Form](../../../../../serialized-form.html#com.google.appengine.api.search.FacetResult) \n-\n -\n\n ### Nested Class Summary\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Summary\n\n -\n\n ### Methods inherited from class java.lang.Object\n\n`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait` \n-\n -\n\n ### Method Detail\n\n\n -\n\n #### getValues\n\n ```\n public java.util.List\u003cFacetResultValue\u003e getValues()\n ``` \n The list of facet values computed during search. Each value result has a label, count, and refinement token.\n\n Returns:\n : an unmodifiable list of values\n\n\n -\n\n #### getName\n\n ```\n public java.lang.String getName()\n ``` \n Name of this facet result that is a single facet name.\n\n Returns:\n : name as string\n\n\n -\n\n #### newBuilder\n\n ```\n public static FacetResult.Builder newBuilder()\n ```\n\n\n -\n\n #### toString\n\n ```\n public java.lang.String toString()\n ```\n\n Overrides:\n : `toString` in class `java.lang.Object`"]]