public void mergeFrom(io.protostuff.Input input, com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setRecords(input.readInt64()); break; case 2: builder.setBatches(input.readInt64()); break; case 3: builder.setSchemas(input.readInt64()); break; case 4: builder.setSize(input.readInt64()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.StreamProfile.Builder builder)
public Builder mergeFrom(com.dremio.exec.proto.UserBitShared.StreamProfile other) { if (other == com.dremio.exec.proto.UserBitShared.StreamProfile.getDefaultInstance()) return this; if (other.hasRecords()) { setRecords(other.getRecords()); } if (other.hasBatches()) { setBatches(other.getBatches()); } if (other.hasSchemas()) { setSchemas(other.getSchemas()); } if (other.hasSize()) { setSize(other.getSize()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void addStreamProfile(OperatorProfile.Builder builder) { for(int i = 0; i < recordsReceivedByInput.length; i++){ builder.addInputProfile( StreamProfile.newBuilder() .setBatches(batchesReceivedByInput[i]) .setRecords(recordsReceivedByInput[i]) .setSize(sizeInBytesReceivedByInput[i]) ); } }