@Override public boolean equals(Object other) { if (other instanceof GroupElem) { GroupElem o = (GroupElem)other; return name.equals(o.getName()) && operator.equals(o.getOperator()); } return false; }
@Override public boolean equals(Object other) { if (other instanceof GroupElem) { GroupElem o = (GroupElem)other; return name.equals(o.getName()) && operator.equals(o.getOperator()); } return false; }
@Override public GroupElem clone() { GroupElem clone = (GroupElem)super.clone(); clone.setOperator(getOperator().clone()); return clone; } }
private Map<String, Aggregate> getAggregates() throws ValueExprEvaluationException, QueryEvaluationException { Map<String, Aggregate> result = aggregates; if (result == null) { synchronized (this) { result = aggregates; if (result == null) { result = aggregates = new LinkedHashMap<String, Aggregate>(); for (GroupElem ge : group.getGroupElements()) { Aggregate create = create(ge.getOperator()); if (create != null) { aggregates.put(ge.getName(), create); } } } } } return result; }
private Map<String, Aggregate> getAggregates() throws ValueExprEvaluationException, QueryEvaluationException { Map<String, Aggregate> result = aggregates; if (result == null) { synchronized (this) { result = aggregates; if (result == null) { result = aggregates = new LinkedHashMap<String, Aggregate>(); for (GroupElem ge : group.getGroupElements()) { Aggregate create = create(ge.getOperator()); if (create != null) { aggregates.put(ge.getName(), create); } } } } } return result; }
@Override public GroupElem clone() { GroupElem clone = (GroupElem)super.clone(); clone.setOperator(getOperator().clone()); return clone; } }
for(final GroupElem groupElem : aggNode.getGroupElements()) { final AggregateOperator operator = groupElem.getOperator(); final Optional<AggregationType> type = AggregationType.byOperatorClass( operator.getClass() );
for(final GroupElem groupElem : group.getGroupElements()) { final AggregateOperator operator = groupElem.getOperator(); final Optional<AggregationType> type = AggregationType.byOperatorClass( operator.getClass() );