Class ProductSearchFacetResultStatsBuilder
- All Implemented Interfaces:
Builder<ProductSearchFacetResultStats>
Example to create an instance using the builder pattern
ProductSearchFacetResultStats productSearchFacetResultStats = ProductSearchFacetResultStats.builder()
.name("{name}")
.count(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSearchFacetResultStats with checking for non-null required valuesbuilds ProductSearchFacetResultStats without checking for non-null required valuesThe total number of values counted that match the facet expression.getCount()
The total number of values counted that match the facet expression.getMax()
The maximum value of the field, scoped to the faceted results.getMean()
The average value of the field calculated assum
/count
.getMin()
The minimum value of the field, scoped to the faceted results.getName()
Name of the facet.getSum()
The sum of values of the field that match the facet expression.The maximum value of the field, scoped to the faceted results.The average value of the field calculated assum
/count
.The minimum value of the field, scoped to the faceted results.Name of the facet.of()
factory method for an instance of ProductSearchFacetResultStatsBuilderof
(ProductSearchFacetResultStats template) create builder for ProductSearchFacetResultStats instanceThe sum of values of the field that match the facet expression.
-
Constructor Details
-
ProductSearchFacetResultStatsBuilder
public ProductSearchFacetResultStatsBuilder()
-
-
Method Details
-
name
Name of the facet.
- Parameters:
name
- value to be set- Returns:
- Builder
-
min
The minimum value of the field, scoped to the faceted results.
- Parameters:
min
- value to be set- Returns:
- Builder
-
max
The maximum value of the field, scoped to the faceted results.
- Parameters:
max
- value to be set- Returns:
- Builder
-
mean
The average value of the field calculated as
sum
/count
.Only returned for number fields.
- Parameters:
mean
- value to be set- Returns:
- Builder
-
sum
The sum of values of the field that match the facet expression.
Only returned for number fields.
- Parameters:
sum
- value to be set- Returns:
- Builder
-
count
The total number of values counted that match the facet expression.
- Parameters:
count
- value to be set- Returns:
- Builder
-
getName
Name of the facet.
- Returns:
- name
-
getMin
The minimum value of the field, scoped to the faceted results.
- Returns:
- min
-
getMax
The maximum value of the field, scoped to the faceted results.
- Returns:
- max
-
getMean
The average value of the field calculated as
sum
/count
.Only returned for number fields.
- Returns:
- mean
-
getSum
The sum of values of the field that match the facet expression.
Only returned for number fields.
- Returns:
- sum
-
getCount
The total number of values counted that match the facet expression.
- Returns:
- count
-
build
builds ProductSearchFacetResultStats with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchFacetResultStats>
- Returns:
- ProductSearchFacetResultStats
-
buildUnchecked
builds ProductSearchFacetResultStats without checking for non-null required values- Returns:
- ProductSearchFacetResultStats
-
of
factory method for an instance of ProductSearchFacetResultStatsBuilder- Returns:
- builder
-
of
create builder for ProductSearchFacetResultStats instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-