Package io.constructor.client
Class VariationsMap
java.lang.Object
io.constructor.client.VariationsMap
Constructor.io Variations Map Object ... uses Gson/Reflection to load data in
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumclassclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupByRule(String name, String field) Creates and adds a group by rulevoidaddValueRule(String name, VariationsMap.AggregationTypes aggregation, String field) Creates and adds a group by rulegetdType()com.google.gson.JsonObjectvoidsetdType(VariationsMap.Dtypes dType) voidsetFilterBy(String filterBy) voidsetGroupBy(List<VariationsMap.Group> groupBy) voidsetValues(Map<String, VariationsMap.Value> values)
-
Constructor Details
-
VariationsMap
public VariationsMap()Creates a variations map
-
-
Method Details
-
addGroupByRule
Creates and adds a group by rule- Parameters:
name- The name of the group by rulefield- The field to group by
-
addValueRule
Creates and adds a group by rule- Parameters:
name- The name of the value ruleaggregation- The aggregation type for the rulefield- The field to group by
-
getdType
- Returns:
- the dtype
-
setdType
- Parameters:
dType- the dtype to set
-
getValues
- Returns:
- the value rules
-
setValues
- Parameters:
values- the value rules to set
-
getGroupBy
- Returns:
- the group by rules
-
setGroupBy
- Parameters:
groupBy- the group by rules to set
-
getFilterBy
public com.google.gson.JsonObject getFilterBy()- Returns:
- JSON encoded filtering expression used to filter variations
-
setFilterBy
- Parameters:
filterBy- JSON encoded filtering expression used to filter variations
-