public static AggregateProtos.AggregateRequest toPBRequest(EntityDefinition entityDefinition, Scan scan, List<String> groupbyFields, List<byte[]> aggregateFuncTypesBytes, List<String> aggregatedFields) throws IOException { AggregateProtos.AggregateRequest.Builder builder = AggregateProtos.AggregateRequest.newBuilder() .setEntityDefinition(AggregateProtos.EntityDefinition.newBuilder().setByteArray(writableToByteString(entityDefinition))) .setScan(toPBScan(scan)); for(String groupbyField:groupbyFields) builder.addGroupbyFields(groupbyField); for(byte[] funcTypeBytes:aggregateFuncTypesBytes) builder.addAggregateFuncTypes(ByteString.copyFrom(funcTypeBytes)); for(String aggField:aggregatedFields) builder.addAggregatedFields(aggField); return builder.build(); }
public static AggregateProtos.AggregateRequest toPBRequest( EntityDefinition entityDefinition, Scan scan, List<String> groupbyFields, List<byte[]> aggregateFuncTypesBytes, List<String> aggregatedFields) throws IOException { AggregateProtos.AggregateRequest.Builder builder = AggregateProtos.AggregateRequest.newBuilder() .setEntityDefinition(AggregateProtos.EntityDefinition.newBuilder().setByteArray(writableToByteString(entityDefinition))) .setScan(toPBScan(scan)); for (String groupbyField : groupbyFields) { builder.addGroupbyFields(groupbyField); } for (byte[] funcTypeBytes : aggregateFuncTypesBytes) { builder.addAggregateFuncTypes(ByteString.copyFrom(funcTypeBytes)); } for (String aggField : aggregatedFields) { builder.addAggregatedFields(aggField); } return builder.build(); }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(AggregateProtos.AggregateRequest prototype) {
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.AggregateRequest prototype) {
public static Builder newBuilder(org.apache.eagle.storage.hbase.query.coprocessor.generated.AggregateProtos.AggregateRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public static Builder newBuilder(AggregateProtos.AggregateRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }