size += 1 * getGroupbyFieldsList().size();
size += 1 * getGroupbyFieldsList().size();
hash = (53 * hash) + getGroupbyFieldsList().hashCode();
hash = (53 * hash) + getGroupbyFieldsList().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.AggregateRequest)) { return super.equals(obj); } org.apache.eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.AggregateRequest other = (org.apache.eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.AggregateRequest) obj; boolean result = true; result = result && (hasEntityDefinition() == other.hasEntityDefinition()); if (hasEntityDefinition()) { result = result && getEntityDefinition() .equals(other.getEntityDefinition()); } result = result && (hasScan() == other.hasScan()); if (hasScan()) { result = result && getScan() .equals(other.getScan()); } result = result && getGroupbyFieldsList() .equals(other.getGroupbyFieldsList()); result = result && getAggregateFuncTypesList() .equals(other.getAggregateFuncTypesList()); result = result && getAggregatedFieldsList() .equals(other.getAggregatedFieldsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof AggregateProtos.AggregateRequest)) { return super.equals(obj); } AggregateProtos.AggregateRequest other = (AggregateProtos.AggregateRequest) obj; boolean result = true; result = result && (hasEntityDefinition() == other.hasEntityDefinition()); if (hasEntityDefinition()) { result = result && getEntityDefinition() .equals(other.getEntityDefinition()); } result = result && (hasScan() == other.hasScan()); if (hasScan()) { result = result && getScan() .equals(other.getScan()); } result = result && getGroupbyFieldsList() .equals(other.getGroupbyFieldsList()); result = result && getAggregateFuncTypesList() .equals(other.getAggregateFuncTypesList()); result = result && getAggregatedFieldsList() .equals(other.getAggregatedFieldsList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@Override public void aggregate(RpcController controller, AggregateProtos.AggregateRequest request, RpcCallback<AggregateProtos.AggregateResult> done) { AggregateResult result = null; try { result = this.aggregate(ProtoBufConverter.fromPBEntityDefinition(request.getEntityDefinition()), ProtoBufConverter.fromPBScan(request.getScan()), ProtoBufConverter.fromPBStringList(request.getGroupbyFieldsList()), ProtoBufConverter.fromPBByteArrayList(request.getAggregateFuncTypesList()), ProtoBufConverter.fromPBStringList(request.getAggregatedFieldsList()) ); } catch (IOException e) { ResponseConverter.setControllerException(controller, e); } try { done.run(ProtoBufConverter.toPBAggregateResult(result)); } catch (IOException e) { throw new RuntimeException("Failed to convert result to PB-based message",e); } }
@Override public void aggregate(RpcController controller, AggregateProtos.AggregateRequest request, RpcCallback<AggregateProtos.AggregateResult> done) { AggregateResult result = null; try { result = this.aggregate(ProtoBufConverter.fromPBEntityDefinition(request.getEntityDefinition()), ProtoBufConverter.fromPBScan(request.getScan()), ProtoBufConverter.fromPBStringList(request.getGroupbyFieldsList()), ProtoBufConverter.fromPBByteArrayList(request.getAggregateFuncTypesList()), ProtoBufConverter.fromPBStringList(request.getAggregatedFieldsList()) ); } catch (IOException e) { ResponseConverter.setControllerException(controller, e); } try { done.run(ProtoBufConverter.toPBAggregateResult(result)); } catch (IOException e) { throw new RuntimeException("Failed to convert result to PB-based message", e); } }