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
Modifier and TypeClassDescriptionstatic enum
static enum
class
class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroupByRule
(String name, String field) Creates and adds a group by rulevoid
addValueRule
(String name, VariationsMap.AggregationTypes aggregation, String field) Creates and adds a group by rulegetdType()
com.google.gson.JsonObject
void
setdType
(VariationsMap.Dtypes dType) void
setFilterBy
(String filterBy) void
setGroupBy
(List<VariationsMap.Group> groupBy) void
setValues
(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
-