Examples of First


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

Examples of cascading.operation.aggregator.First

   * @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

Examples of cascading.operation.aggregator.First

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

Examples of cascading.operation.aggregator.First

   * @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

Examples of org.dozer.vo.deepindex.customconverter.First

   * indexes in getFieldNameOfIndexedField.
   */
  @Test
  public void testDeepIndexMappingWithCustomConverter() {
    mapper = getMapper(new String[] { "deepMappingWithIndexedFieldsByCustomConverter.xml" });
    First first = new First();
    Last last = mapper.map(first, Last.class);
    assertNotNull("nested third object should not be null", last.getThird());
    assertNotNull("name should not be null", last.getThird().getName());
    assertEquals(first.getSecondArray()[0].getThirdArray()[7].getName(), last.getThird().getName());
  }
View Full Code Here

Examples of org.dozer.vo.deepindex.customconverter.First

   * indexes in getFieldNameOfIndexedField.
   */
  @Test
  public void testDeepIndexMappingWithCustomConverter() {
    mapper = getMapper(new String[] { "deepMappingWithIndexedFieldsByCustomConverter.xml" });
    First first = new First();
    Last last = mapper.map(first, Last.class);
    assertNotNull("nested third object should not be null", last.getThird());
    assertNotNull("name should not be null", last.getThird().getName());
    assertEquals(first.getSecondArray()[0].getThirdArray()[7].getName(), last.getThird().getName());
  }
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.