public void addMetricsToStatus(MinorFragmentProfile.Builder prfB) { prfB.setStartTime(startTime); prfB.setMaxMemoryUsed(allocator.getPeakMemoryAllocation()); prfB.setEndTime(System.currentTimeMillis()); prfB.setEndpoint(endpoint); for(Entry<ImmutablePair<Integer, Integer>, OperatorStats> o : operators.entrySet()){ prfB.addOperatorProfile(o.getValue().getProfile()); } }
break; case 9: builder.setEndpoint(input.mergeObject(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(), org.apache.drill.exec.proto.SchemaCoordinationProtos.DrillbitEndpoint.MERGE));
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(); }
break; case 9: builder.setEndpoint(input.mergeObject(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(), org.apache.drill.exec.proto.SchemaCoordinationProtos.DrillbitEndpoint.MERGE));