Class AbstractSearchFacetResult
- java.lang.Object
-
- com.couchbase.client.java.search.result.AbstractSearchFacetResult
-
- All Implemented Interfaces:
SearchFacetResult
- Direct Known Subclasses:
DateRangeSearchFacetResult,NumericRangeSearchFacetResult,TermSearchFacetResult
public abstract class AbstractSearchFacetResult extends Object implements SearchFacetResult
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSearchFacetResult(String facetName, String field, long total, long missing, long other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfield()longmissing()Stringname()longother()longtotal()
-
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceSearchFacetResult- Returns:
- the name of the facet.
-
field
public String field()
- Specified by:
fieldin interfaceSearchFacetResult- Returns:
- the field the
SearchFacetwas targeting.
-
missing
public long missing()
- Specified by:
missingin interfaceSearchFacetResult- Returns:
- the number of results that couldn't be faceted, missing the adequate value. Not matter how many more buckets are added to the original facet, these result won't ever be included in one.
-
other
public long other()
- Specified by:
otherin interfaceSearchFacetResult- Returns:
- the number of results that could have been faceted (because they have a value for the facet's field) but weren't, due to not having a bucket in which they belong. Adding a bucket can result in these results being faceted.
-
total
public long total()
- Specified by:
totalin interfaceSearchFacetResult- Returns:
- the total number of *valued* facet results. Total =
SearchFacetResult.other()+ terms (but doesn't includeSearchFacetResult.missing()).
-
-