Examples of MaxValue


Examples of cascading.operation.aggregator.MaxValue

    Pipe right = new Each( new Pipe( "right" ), new Fields( "line" ), new RegexFilter( ".*192.*" ) );

    Fields[] fields = Fields.fields( new Fields( "offset" ), new Fields( "offset" ) );
    Pipe merge = new HashJoin( "join", Pipe.pipes( left, right ), fields, Fields.size( 4 ), new InnerJoin() );

    merge = new Every( merge, new MaxValue() );

    Map sources = new HashMap();
    sources.put( "left", source1 );
    sources.put( "right", source2 );

View Full Code Here

Examples of cascading.operation.aggregator.MaxValue

   * @param maxField   of type Fields
   */
  @ConstructorProperties({"valueField", "maxField"})
  public MaxBy( Fields valueField, Fields maxField )
    {
    super( valueField, new MaxPartials( maxField ), new MaxValue( maxField ) );
    }
View Full Code Here

Examples of cascading.operation.aggregator.MaxValue

   * @param threshold      of type int
   */
  @ConstructorProperties({"name", "pipes", "groupingFields", "valueField", "maxField", "threshold"})
  public MaxBy( String name, Pipe[] pipes, Fields groupingFields, Fields valueField, Fields maxField, int threshold )
    {
    super( name, pipes, groupingFields, valueField, new MaxPartials( maxField ), new MaxValue( maxField ), threshold );
    }
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.math.MaxValue

            cols[1] = format(m.getValue());
          }
        }

        AvgValue avg = ms.getAverageValue(name);
        MaxValue max = ms.getMaxValue(name);
        if ((avg != null) || (max != null)) {
          TreeItem row = createNewRow();
          row.setForeground(getMetricForeground());
          row.setImage(Activator.getDefault().getImageRegistry().get(
              "metric"));
          cols[0] = name
              + " (avg/max per "
              + MetricUtility.transferLevel(descriptors[i]
                  .getLevel()) + ")";

          if (avg != null) {
            cols[2] = format(avg.getValue());
          }
          if (max != null) {
            cols[3] = format(max.getValue());
            String handle = max.getHandle();
            if (handle != null) {
              IJavaElement element = JavaCore.create(handle);
              cols[5] = element.getPath().toString();
              row.setData("handle", handle);
              row.setData("element", element);
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.math.MaxValue

          child.setImage(getImage(children[i]));
          MetricValue val = children[i].getValue(metric);
          child.setText(1, (val != null) ? format(val.getValue())
              : "");
          AvgValue avg = children[i].getAverageValue(metric);
          MaxValue max = children[i].getMaxValue(metric);
          if ((avg != null) || (max != null)) {
            if (avg != null) {
              child.setText(2, format(avg.getValue()));
            }
            if (max != null) {
              child.setText(3, format(max.getValue()));
              String handle = max.getHandle();
              if (handle != null) {
                IJavaElement element = JavaCore.create(handle);
                child.setText(5, element.getPath().toString());
              }
            }
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.math.MaxValue

          pOut.print("\"");
        }
      }

      AvgValue avg = root.getAverageValue(name);
      MaxValue max = root.getMaxValue(name);
      if ((avg != null) || (max != null)) {
        if (avg != null) {
          pOut.print(" avg = \"");
          pOut.print(format(avg.getValue()));
          pOut.print("\"");
        }
        if (max != null) {
          pOut.print(" max = \"");
          pOut.print(format(max.getValue()));
          pOut.print("\"");

          String handle = max.getHandle();
          if (handle != null) {
            IJavaElement element = JavaCore.create(handle);
            pOut.print(" path = \"");
            pOut.print(element.getPath().toString());
            pOut.print("\"");
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.math.MaxValue

          if (val != null) {
            pOut.print(" total = ");
            pOut.print("\"" + format(val.getValue()) + "\"");
          }
          AvgValue avg = children[i].getAverageValue(metric);
          MaxValue max = children[i].getMaxValue(metric);
          if ((avg != null) || (max != null)) {
            if (avg != null) {
              pOut.print(" avg = ");
              pOut.print("\"" + format(avg.getValue()) + "\"");
            }
            if (max != null) {
              pOut.print(" max = ");
              pOut.print("\"" + format(max.getValue()) + "\"");

              String handle = max.getHandle();
              if (handle != null) {
                IJavaElement element = JavaCore.create(handle);
                pOut.print(" path = ");
                pOut.print("\"" + element.getPath().toString()
                    + "\"");
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.