Package org.apache.flink.api.common.operators.util

Examples of org.apache.flink.api.common.operators.util.FieldList


    check(new FieldList(3).addFields(2, 8, 5, 7), 3, 2, 8, 5, 7);
  }
 
  @Test
  public void testImmutability() {
    FieldList s1 = new FieldList();
    FieldList s2 = new FieldList(5);
    FieldList s3 = new FieldList(new Integer(7));
    FieldList s4 = new FieldList(5, 4, 7, 6);
   
    s1.addFields(s2).addFields(s3);
    s2.addFields(s4);
    s4.addFields(s1);
   
    s1.addField(new Integer(14));
    s2.addFields(78, 13, 66, 3);
   
    assertEquals(0, s1.size());
    assertEquals(1, s2.size());
    assertEquals(1, s3.size());
    assertEquals(4, s4.size());
  }
View Full Code Here


    assertEquals(4, s4.size());
  }
 
  @Test
  public void testAddSetToList() {
    check(new FieldList().addFields(new FieldSet(1)).addFields(2), 1, 2);
    check(new FieldList().addFields(1).addFields(new FieldSet(2)), 1, 2);
    check(new FieldList().addFields(new FieldSet(2)), 2);
  }
View Full Code Here

TOP

Related Classes of org.apache.flink.api.common.operators.util.FieldList

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.