Examples of OperatorProfile


Examples of org.apache.drill.exec.proto.UserBitShared.OperatorProfile

      final String [] columns = {"Fragment", "Setup", "Process", "Wait", "Max Batches", "Max Records"};
      TableBuilder builder = new TableBuilder(columns);
     
      for (ImmutablePair<OperatorProfile, Integer> ip : ops) {
        int minor = ip.getRight();
        OperatorProfile op = ip.getLeft();
       
        builder.appendCell(String.format("#%d - %d", major, minor), null);
        builder.appendNanos(op.getSetupNanos(), null);
        builder.appendNanos(op.getProcessNanos(), null);
        builder.appendNanos(op.getWaitNanos(), null);
       
        long maxBatches = Long.MIN_VALUE;
        long maxRecords = Long.MIN_VALUE;
        for (StreamProfile sp : op.getInputProfileList()) {
          maxBatches = Math.max(sp.getBatches(), maxBatches);
          maxRecords = Math.max(sp.getRecords(), maxRecords);
        }
       
        builder.appendInteger(maxBatches, null);
View Full Code Here

Examples of org.apache.drill.exec.proto.UserBitShared.OperatorProfile

      this.major = major;
      this.ops = ops;
    }

    public String getDisplayName() {
      OperatorProfile op = ops.get(0).getLeft();
      String path = new OperatorPathBuilder().setMajor(major).setOperator(op).build();
      CoreOperatorType operatorType = CoreOperatorType.valueOf(op.getOperatorType());
      return String.format("%s - %s", path, operatorType == null ? "UKNOWN_OPERATOR" : operatorType.toString());
    }
View Full Code Here

Examples of org.apache.drill.exec.proto.UserBitShared.OperatorProfile

      final String [] columns = {"Minor Fragment", "Setup", "Process", "Wait", "Max Batches", "Max Records"};
      TableBuilder builder = new TableBuilder(columns);

      for (ImmutablePair<OperatorProfile, Integer> ip : ops) {
        int minor = ip.getRight();
        OperatorProfile op = ip.getLeft();

        String path = new OperatorPathBuilder().setMajor(major).setMinor(minor).setOperator(op).build();
        builder.appendCell(path, null);
        builder.appendNanos(op.getSetupNanos(), null);
        builder.appendNanos(op.getProcessNanos(), null);
        builder.appendNanos(op.getWaitNanos(), null);

        long maxBatches = Long.MIN_VALUE;
        long maxRecords = Long.MIN_VALUE;
        for (StreamProfile sp : op.getInputProfileList()) {
          maxBatches = Math.max(sp.getBatches(), maxBatches);
          maxRecords = Math.max(sp.getRecords(), maxRecords);
        }

        builder.appendInteger(maxBatches, null);
View Full Code Here

Examples of org.apache.drill.exec.proto.UserBitShared.OperatorProfile

      }
      return builder.toString();
    }

    public void addSummary(TableBuilder tb) {
      OperatorProfile op = ops.get(0).getLeft();
      String path = new OperatorPathBuilder().setMajor(major).setOperator(op).build();
      tb.appendCell(path, null);
      CoreOperatorType operatorType = CoreOperatorType.valueOf(ops.get(0).getLeft().getOperatorType());
      tb.appendCell(operatorType == null ? "UNKNOWN_OPERATOR" : operatorType.toString(), null);
View Full Code Here

Examples of org.apache.drill.exec.proto.UserBitShared.OperatorProfile

      this.major = major;
      this.ops = ops;
    }

    public String getDisplayName() {
      OperatorProfile op = ops.get(0).getLeft();
      String path = new OperatorPathBuilder().setMajor(major).setOperator(op).build();
      return String.format("%s - %s", path, CoreOperatorType.valueOf(op.getOperatorType()).toString());
    }
View Full Code Here

Examples of org.apache.drill.exec.proto.UserBitShared.OperatorProfile

      final String [] columns = {"Minor Fragment", "Setup", "Process", "Wait", "Max Batches", "Max Records"};
      TableBuilder builder = new TableBuilder(columns);

      for (ImmutablePair<OperatorProfile, Integer> ip : ops) {
        int minor = ip.getRight();
        OperatorProfile op = ip.getLeft();

        String path = new OperatorPathBuilder().setMajor(major).setMinor(minor).setOperator(op).build();
        builder.appendCell(path, null);
        builder.appendNanos(op.getSetupNanos(), null);
        builder.appendNanos(op.getProcessNanos(), null);
        builder.appendNanos(op.getWaitNanos(), null);

        long maxBatches = Long.MIN_VALUE;
        long maxRecords = Long.MIN_VALUE;
        for (StreamProfile sp : op.getInputProfileList()) {
          maxBatches = Math.max(sp.getBatches(), maxBatches);
          maxRecords = Math.max(sp.getRecords(), maxRecords);
        }

        builder.appendInteger(maxBatches, null);
View Full Code Here

Examples of org.apache.drill.exec.proto.UserBitShared.OperatorProfile

      }
      return builder.toString();
    }

    public void addSummary(TableBuilder tb) {
      OperatorProfile op = ops.get(0).getLeft();
      String path = new OperatorPathBuilder().setMajor(major).setOperator(op).build();
      tb.appendCell(path, null);
      tb.appendCell(CoreOperatorType.valueOf(ops.get(0).getLeft().getOperatorType() ).toString(), null);

      int li = ops.size() - 1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.