public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile other) { if (other == org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance()) return this; if (other.hasState()) { setState(other.getState());
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile other) { if (other == org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance()) return this; if (other.hasState()) { setState(other.getState());
return; case 1: builder.setState(org.apache.drill.exec.proto.UserBitShared.FragmentState.valueOf(input.readEnum())); break; case 2:
private FragmentStatus getStatus(final FragmentState state, final UserException ex) { final FragmentStatus.Builder status = FragmentStatus.newBuilder(); final MinorFragmentProfile.Builder b = MinorFragmentProfile.newBuilder(); context.getStats().addMetricsToStatus(b); b.setState(state); if (ex != null) { final boolean verbose = context.getOptions().getOption(ExecConstants.ENABLE_VERBOSE_ERRORS_KEY).bool_val; b.setError(ex.getOrCreatePBError(verbose)); } status.setHandle(context.getHandle()); b.setMemoryUsed(context.getAllocator().getAllocatedMemory()); b.setMinorFragmentId(context.getHandle().getMinorFragmentId()); status.setProfile(b); return status.build(); }
public FragmentData(final FragmentHandle handle, final DrillbitEndpoint endpoint, final boolean isLocal) { this.endpoint = endpoint; this.isLocal = isLocal; final MinorFragmentProfile f = MinorFragmentProfile.newBuilder() .setState(FragmentState.SENDING) .setMinorFragmentId(handle.getMinorFragmentId()) .setEndpoint(endpoint) .build(); status = FragmentStatus.newBuilder() .setHandle(handle) .setProfile(f) .build(); }
return; case 1: builder.setState(org.apache.drill.exec.proto.UserBitShared.FragmentState.valueOf(input.readEnum())); break; case 2: