public Set<String> getAggregateBindingNames() { Set<String> bindings = new HashSet<String>(); for (GroupElem binding : groupElements) { bindings.add(binding.getName()); } return bindings; }
public Set<String> getAggregateBindingNames() { Set<String> bindings = new HashSet<>(); for (GroupElem binding : groupElements) { bindings.add(binding.getName()); } return bindings; }
@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; }
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; }
final String resultBindingName = groupElem.getName();
final String resultBindingName = groupElem.getName();