Examples of BooleanListValue


Examples of eu.stratosphere.api.java.record.io.avro.AvroRecordInputFormat.BooleanListValue

    // check arrays
    StringListValue sl = record.getField(7, AvroRecordInputFormat.StringListValue.class);
    Assert.assertEquals("element 0 not equal", sl.get(0).getValue(), TEST_ARRAY_STRING_1);
    Assert.assertEquals("element 1 not equal", sl.get(1).getValue(), TEST_ARRAY_STRING_2);
   
    BooleanListValue bl = record.getField(8, AvroRecordInputFormat.BooleanListValue.class);
    Assert.assertEquals("element 0 not equal", bl.get(0).getValue(), TEST_ARRAY_BOOLEAN_1);
    Assert.assertEquals("element 1 not equal", bl.get(1).getValue(), TEST_ARRAY_BOOLEAN_2);
   
    // check enums
    StringValue enumValue = record.getField(10, StringValue.class);
    Assert.assertEquals("string representation of enum not equal", enumValue.getValue(), TEST_ENUM_COLOR.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.