Package org.apache.flink.types

Examples of org.apache.flink.types.CharValue


  @Override
  protected CharValue[] getTestData() {
    Random rnd = new Random(874597969123412341L);
    int rndInt = rnd.nextInt((int) Character.MAX_VALUE);
   
    return new CharValue[] {new CharValue('a'), new CharValue('@'), new CharValue('ä'),
                new CharValue('1'), new CharValue((char) rndInt),
                new CharValue(Character.MAX_VALUE), new CharValue(Character.MIN_VALUE)};
  }
View Full Code Here


    return false;
  }
 
  @Override
  public CharValue createInstance() {
    return new CharValue();
  }
View Full Code Here

    return new CharValue();
  }
 
  @Override
  public CharValue copy(CharValue from) {
    return copy(from, new CharValue());
  }
View Full Code Here

    record.write(target);
  }
 
  @Override
  public CharValue deserialize(DataInputView source) throws IOException {
    return deserialize(new CharValue(), source);
  }
View Full Code Here

  }
 
  @Test
  public void testPactChar() {
   
    final CharValue c1 = new CharValue((char) 0);
    final CharValue c2 = new CharValue((char) 1);
    final CharValue c3 = new CharValue((char) 0xff);
    final CharValue c4 = new CharValue(Character.MAX_VALUE);
    final CharValue c5 = new CharValue((char) (Character.MAX_VALUE + (char) 1));
    final CharValue c6 = new CharValue(Character.MAX_HIGH_SURROGATE);
    final CharValue c7 = new CharValue(Character.MAX_LOW_SURROGATE);
    final CharValue c8 = new CharValue(Character.MAX_SURROGATE);
   
    CharValue[] allChars = new CharValue[] {
      c1, c2, c3, c4, c5, c6, c7, c8 };
   
    for (int i = 0; i < 5; i++) {
View Full Code Here

TOP

Related Classes of org.apache.flink.types.CharValue

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.