Interface FacetResult

All Known Subinterfaces:
FilteredFacetResult, RangeFacetResult, TermFacetResult

public interface FacetResult
FacetResult
Example to create a subtype instance using the builder pattern

     FacetResult facetResult = FacetResult.filterBuilder()
             count(0.3)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull FacetTypes getType()
      Returns:
      type
    • deepCopy

      @Nullable static FacetResult deepCopy(@Nullable FacetResult template)
      factory method to create a deep copy of FacetResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • filterBuilder

      static FilteredFacetResultBuilder filterBuilder()
      builder for filter subtype
      Returns:
      builder
    • rangeBuilder

      static RangeFacetResultBuilder rangeBuilder()
      builder for range subtype
      Returns:
      builder
    • termsBuilder

      static TermFacetResultBuilder termsBuilder()
      builder for terms subtype
      Returns:
      builder
    • withFacetResult

      default <T> T withFacetResult(Function<FacetResult,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<FacetResult> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference