Class VariationsMap

java.lang.Object
io.constructor.client.VariationsMap

public class VariationsMap extends Object
Constructor.io Variations Map Object ... uses Gson/Reflection to load data in
  • Constructor Details

    • VariationsMap

      public VariationsMap()
      Creates a variations map
  • Method Details

    • addGroupByRule

      public void addGroupByRule(String name, String field)
      Creates and adds a group by rule
      Parameters:
      name - The name of the group by rule
      field - The field to group by
    • addValueRule

      public void addValueRule(String name, VariationsMap.AggregationTypes aggregation, String field)
      Creates and adds a group by rule
      Parameters:
      name - The name of the value rule
      aggregation - The aggregation type for the rule
      field - The field to group by
    • getdType

      public VariationsMap.Dtypes getdType()
      Returns:
      the dtype
    • setdType

      public void setdType(VariationsMap.Dtypes dType)
      Parameters:
      dType - the dtype to set
    • getValues

      public Map<String,VariationsMap.Value> getValues()
      Returns:
      the value rules
    • setValues

      public void setValues(Map<String,VariationsMap.Value> values)
      Parameters:
      values - the value rules to set
    • getGroupBy

      public List<VariationsMap.Group> getGroupBy()
      Returns:
      the group by rules
    • setGroupBy

      public void setGroupBy(List<VariationsMap.Group> groupBy)
      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

      public void setFilterBy(String filterBy)
      Parameters:
      filterBy - JSON encoded filtering expression used to filter variations