for (final MajorFragmentProfile major : majors) { final List<MinorFragmentProfile> minors = new ArrayList<>(major.getMinorFragmentProfileList()); Collections.sort(minors, Comparators.minorId); for (final MinorFragmentProfile minor : minors) {
Collections2.filter(major.getMinorFragmentProfileList(), Filters.hasOperatorsAndTimes));
final int operatorId = opId.getOpId(); FluentIterable<OperatorProfile> operators = FluentIterable.from(findFragmentProfileWithId(profile, fragmentId).getMinorFragmentProfileList()) .transform(new Function<MinorFragmentProfile, OperatorProfile>() { @Override
final ListMultimap<CoreOperatorType, OperatorProfile> operators = ArrayListMultimap.create(); for (MajorFragmentProfile majorFragment: queryProfile.getFragmentProfileList()) { if (majorFragment.getMinorFragmentProfileList() == null) { continue; for (MinorFragmentProfile minorFragmentProfile : majorFragment.getMinorFragmentProfileList()) { if (minorFragmentProfile.getOperatorProfileList() == null) { continue;
Collections2.filter(major.getMinorFragmentProfileList(), Filters.hasOperatorsAndTimes)); final List<MinorFragmentProfile> incomplete = new ArrayList<>( Collections2.filter(major.getMinorFragmentProfileList(), Filters.missingOperatorsOrTimes));
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.MajorFragmentProfile message) throws java.io.IOException { if(message.hasMajorFragmentId()) output.writeInt32(1, message.getMajorFragmentId(), false); for(com.dremio.exec.proto.UserBitShared.MinorFragmentProfile minorFragmentProfile : message.getMinorFragmentProfileList()) output.writeObject(2, minorFragmentProfile, com.dremio.exec.proto.SchemaUserBitShared.MinorFragmentProfile.WRITE, true); for(com.dremio.exec.proto.UserBitShared.NodePhaseProfile nodePhaseProfile : message.getNodePhaseProfileList()) output.writeObject(3, nodePhaseProfile, com.dremio.exec.proto.SchemaUserBitShared.NodePhaseProfile.WRITE, true); } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.MajorFragmentProfile message)