public interface SimilarityMeasures
Specify which ProductData attributes to use for estimating similarity and how to weigh them. An attribute's weight can be any whole positive integer, starting with 0. The larger the integer, the higher its weight.
| Modifier and Type | Method and Description |
|---|---|
static SimilarityMeasuresBuilder |
builder() |
static SimilarityMeasuresBuilder |
builder(SimilarityMeasures template) |
Long |
getAttribute()
Importance of the
description attribute in overall similarity. |
Long |
getDescription()
Importance of the
description attribute in overall similarity. |
Long |
getName()
Importance of the
name attribute in overall similarity. |
Long |
getPrice()
Importance of the
price attribute in overall similarity. |
Long |
getVariantCount()
Importance of the number of product variants in overall similarity.
|
static SimilarityMeasures |
of() |
static SimilarityMeasures |
of(SimilarityMeasures template) |
void |
setAttribute(Long attribute) |
void |
setDescription(Long description) |
void |
setName(Long name) |
void |
setPrice(Long price) |
void |
setVariantCount(Long variantCount) |
default <T> T |
withSimilarityMeasures(Function<SimilarityMeasures,T> helper) |
Long getName()
Importance of the name attribute in overall similarity.
Long getDescription()
Importance of the description attribute in overall similarity.
Long getAttribute()
Importance of the description attribute in overall similarity.
Long getVariantCount()
Importance of the number of product variants in overall similarity.
Long getPrice()
Importance of the price attribute in overall similarity.
void setName(Long name)
void setDescription(Long description)
void setAttribute(Long attribute)
void setVariantCount(Long variantCount)
void setPrice(Long price)
static SimilarityMeasures of()
static SimilarityMeasures of(SimilarityMeasures template)
static SimilarityMeasuresBuilder builder()
static SimilarityMeasuresBuilder builder(SimilarityMeasures template)
default <T> T withSimilarityMeasures(Function<SimilarityMeasures,T> helper)