Package cascading.operation.aggregator

Examples of cascading.operation.aggregator.First


    // transpose values in fields by natural sort order
    pipe = new Each( pipe, new SortElements( new Fields( "name1", "rate1" ), new Fields( "name2", "rate2" ) ) );

    // unique the pipe
    pipe = new GroupBy( pipe, Fields.ALL );
    pipe = new Every( pipe, Fields.ALL, new First(), Fields.RESULTS );

    // calculate square of diff
    Function sqDiff = new Identity( new Fields( "score" ) )
    {
    public void operate( FlowProcess flowProcess, FunctionCall functionCall )
View Full Code Here


   * @param threshold      of type int
   */
  @ConstructorProperties({"name", "pipes", "groupingFields", "firstFields", "threshold"})
  public FirstBy( String name, Pipe[] pipes, Fields groupingFields, Fields firstFields, int threshold )
    {
    super( name, pipes, groupingFields, firstFields, new FirstPartials( firstFields ), new First( firstFields ), threshold );
    }
View Full Code Here

   * @param firstFields of type Fields
   */
  @ConstructorProperties({"firstFields"})
  public FirstBy( Fields firstFields )
    {
    super( firstFields, new FirstPartials( firstFields ), new First( firstFields ) );
    }
View Full Code Here

   * @param firstFields of type Fields
   */
  @ConstructorProperties({"argumentFields", "firstFields"})
  public FirstBy( Fields argumentFields, Fields firstFields )
    {
    super( argumentFields, new FirstPartials( argumentFields ), new First( firstFields ) );
    }
View Full Code Here

TOP

Related Classes of cascading.operation.aggregator.First

Copyright © 2018 www.massapicom. 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.