public final class GravityRecommendationContextBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GravityRecommendationContextBuilder.DynamicRangeFacetBuilder |
static class |
GravityRecommendationContextBuilder.FacetBuilder |
Constructor and Description |
---|
GravityRecommendationContextBuilder(java.lang.String scenarioId,
int numberLimit) |
Modifier and Type | Method and Description |
---|---|
GravityRecommendationContextBuilder |
addFacet(com.gravityrd.receng.web.webshop.jsondto.facet.FacetRequest<?> facet) |
GravityRecommendationContextBuilder |
addFacet(GravityRecommendationContextBuilder.FacetBuilder.FacetRequestBuilder<?,?,?> facetBuilder) |
GravityRecommendationContextBuilder |
addNameValue(java.util.Collection<com.gravityrd.receng.web.webshop.jsondto.GravityNameValue> nameValues) |
GravityRecommendationContextBuilder |
addNameValue(java.util.List<java.lang.String> names,
java.util.List<java.lang.String> values) |
GravityRecommendationContextBuilder |
addNameValue(java.lang.String name,
java.lang.String value) |
GravityRecommendationContextBuilder |
addResultNameValue(java.lang.String name) |
GravityRecommendationContextBuilder |
addResultNameValueFilter(java.lang.String name,
java.util.Collection<java.lang.String> values) |
GravityRecommendationContextBuilder |
addResultNameValues(java.util.Collection<java.lang.String> names) |
com.gravityrd.receng.web.webshop.jsondto.GravityRecommendationContext |
build() |
static GravityRecommendationContextBuilder.FacetBuilder.RangeFacetBuilder |
range(java.lang.String field) |
static GravityRecommendationContextBuilder.FacetBuilder.RangeFacetBuilder |
range(java.lang.String field,
java.util.List<com.gravityrd.receng.web.webshop.jsondto.facet.Range> ranges) |
GravityRecommendationContextBuilder |
setRecommendationTime(int recommendationTime) |
static GravityRecommendationContextBuilder.FacetBuilder.TermFacetBuilder |
term(java.lang.String field,
int count) |
public GravityRecommendationContextBuilder(java.lang.String scenarioId, int numberLimit)
public static GravityRecommendationContextBuilder.FacetBuilder.TermFacetBuilder term(java.lang.String field, int count)
public static GravityRecommendationContextBuilder.FacetBuilder.RangeFacetBuilder range(java.lang.String field)
public static GravityRecommendationContextBuilder.FacetBuilder.RangeFacetBuilder range(java.lang.String field, java.util.List<com.gravityrd.receng.web.webshop.jsondto.facet.Range> ranges)
public GravityRecommendationContextBuilder setRecommendationTime(int recommendationTime)
public GravityRecommendationContextBuilder addNameValue(java.lang.String name, java.lang.String value)
public GravityRecommendationContextBuilder addNameValue(java.util.List<java.lang.String> names, java.util.List<java.lang.String> values)
public GravityRecommendationContextBuilder addNameValue(java.util.Collection<com.gravityrd.receng.web.webshop.jsondto.GravityNameValue> nameValues)
public GravityRecommendationContextBuilder addResultNameValue(java.lang.String name)
public GravityRecommendationContextBuilder addResultNameValues(java.util.Collection<java.lang.String> names)
public GravityRecommendationContextBuilder addResultNameValueFilter(java.lang.String name, java.util.Collection<java.lang.String> values)
public GravityRecommendationContextBuilder addFacet(com.gravityrd.receng.web.webshop.jsondto.facet.FacetRequest<?> facet)
public GravityRecommendationContextBuilder addFacet(GravityRecommendationContextBuilder.FacetBuilder.FacetRequestBuilder<?,?,?> facetBuilder)
public com.gravityrd.receng.web.webshop.jsondto.GravityRecommendationContext build()