Interface FacetResult
- All Known Subinterfaces:
FilteredFacetResult
,RangeFacetResult
,TermFacetResult
public interface FacetResult
FacetResult
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
FacetResult facetResult = FacetResult.filterBuilder()
count(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic FacetResult
deepCopy
(FacetResult template) factory method to create a deep copy of FacetResultstatic FilteredFacetResultBuilder
builder for filter subtype@NotNull FacetTypes
getType()
static RangeFacetResultBuilder
builder for range subtypestatic TermFacetResultBuilder
builder for terms subtypestatic com.fasterxml.jackson.core.type.TypeReference<FacetResult>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withFacetResult
(Function<FacetResult, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of FacetResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
filterBuilder
builder for filter subtype- Returns:
- builder
-
rangeBuilder
builder for range subtype- Returns:
- builder
-
termsBuilder
builder for terms subtype- Returns:
- builder
-
withFacetResult
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-