Exemplo n.º 1
0
 public ActiveRuleDoc(Map<String, Object> fields) {
   super(fields);
   this.key =
       ActiveRuleKey.parse((String) getField(ActiveRuleNormalizer.ActiveRuleField.KEY.field()));
   Preconditions.checkArgument(key != null, "Invalid ActiveRuleKey!");
 }
Exemplo n.º 2
0
 @Override
 protected Map mapKey() {
   Map<String, Object> mapping = new HashMap<String, Object>();
   mapping.put("path", ActiveRuleNormalizer.ActiveRuleField.KEY.field());
   return mapping;
 }