public FragmentData(final FragmentHandle handle, final NodeEndpoint endpoint) { this.endpoint = endpoint; final MinorFragmentProfile f = MinorFragmentProfile.newBuilder() .setState(FragmentState.SENDING) .setMinorFragmentId(handle.getMinorFragmentId()) .setEndpoint(endpoint) .build(); status = FragmentStatus.newBuilder() .setHandle(handle) .setProfile(f) .build(); }
private void initFields() { status_ = com.dremio.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; serverMeta_ = com.dremio.exec.proto.UserProtos.ServerMeta.getDefaultInstance(); error_ = com.dremio.exec.proto.UserBitShared.DremioPBError.getDefaultInstance(); queryId_ = com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
/** * Create a {@link com.dremio.exec.proto.beans.NodeEndpoint} * @param address the address * @param port the control port * @return */ private static NodeEndpoint newNodeEndpoint(String address, int port) { return NodeEndpoint.newBuilder().setAddress(address).setFabricPort(port).setRoles(Roles.newBuilder().setJavaExecutor(true)).build(); }
private static FragmentHandle getHandle(FragmentStreamComplete completion, int index){ return FragmentHandle.newBuilder() .setQueryId(completion.getQueryId()) .setMajorFragmentId(completion.getReceivingMajorFragmentId()) .setMinorFragmentId(completion.getReceivingMinorFragmentId(index)) .build(); }
private static FragmentHandle getHandle(FragmentRecordBatch batch, int index) { return FragmentHandle.newBuilder() .setQueryId(batch.getQueryId()) .setMajorFragmentId(batch.getReceivingMajorFragmentId()) .setMinorFragmentId(batch.getReceivingMinorFragmentId(index)) .build(); }
@Override public CoordExecRPC.QueryContextInformation getQueryContextInfo() { return CoordExecRPC.QueryContextInformation.newBuilder() .setQueryMaxAllocation(Long.MAX_VALUE) .setPriority ( CoordExecRPC.FragmentPriority.newBuilder().setWorkloadClass(UserBitShared.WorkloadClass.GENERAL).build() ) .build(); }
public Builder mergeFrom(com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment other) { if (other == com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment.getDefaultInstance()) return this; if (other.hasMinorFragment()) { setMinorFragment(other.getMinorFragment()); } if (other.hasEndpoint()) { mergeEndpoint(other.getEndpoint()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus other) { if (other == com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.getDefaultInstance()) return this; if (other.hasMajorFragmentId()) { setMajorFragmentId(other.getMajorFragmentId()); } if (other.hasMaxMemoryUsed()) { setMaxMemoryUsed(other.getMaxMemoryUsed()); } 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]) ); } }
public MinorFragmentProfile getProfile() { return status .getProfile() .toBuilder() .setLastUpdate(lastStatusUpdate) .setLastProgress(lastProgress) .build(); }
private static CoreOperatorTypeMetricsMap.Builder getMapBuilder() { CoreOperatorTypeMetricsMap.Builder builder = CoreOperatorTypeMetricsMap.newBuilder(); for (int i = 0; i < CoreOperatorType.values().length; i++) { // Initalizing with metricsdef object with empty list => This can be modified later at the time of registration builder.addMetricsDef(MetricsDef.getDefaultInstance()); } return builder; }
private void initFields() { status_ = com.dremio.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; preparedStatement_ = com.dremio.exec.proto.UserProtos.PreparedStatement.getDefaultInstance(); error_ = com.dremio.exec.proto.UserBitShared.DremioPBError.getDefaultInstance(); queryId_ = com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
/** * <code>optional string externalReflection = 12;</code> */ public Builder clearExternalReflection() { bitField0_ = (bitField0_ & ~0x00000800); externalReflection_ = getDefaultInstance().getExternalReflection(); onChanged(); return this; } /**
/** * <code>optional string cancel_reason = 2;</code> */ public Builder clearCancelReason() { bitField0_ = (bitField0_ & ~0x00000002); cancelReason_ = getDefaultInstance().getCancelReason(); onChanged(); return this; } /**
public com.dremio.exec.proto.ExecRPC.OOBMessage build() { com.dremio.exec.proto.ExecRPC.OOBMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public com.dremio.exec.proto.ExecProtos.ServerPreparedStatementState build() { com.dremio.exec.proto.ExecProtos.ServerPreparedStatementState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public com.dremio.exec.proto.ExecProtos.HashAggSpill build() { com.dremio.exec.proto.ExecProtos.HashAggSpill result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public com.dremio.exec.proto.CoordinationProtos.NodeEndpoint build() { com.dremio.exec.proto.CoordinationProtos.NodeEndpoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }