use of thrift.test.OneOfEach in project parquet-mr by apache.
the class TestThriftToPigCompatibility method testOneOfEach.
@Test
public void testOneOfEach() throws Exception {
OneOfEach a = new OneOfEach(true, false, (byte) 8, (short) 16, (int) 32, (long) 64, (double) 1234, "string", "å", false, ByteBuffer.wrap("a".getBytes()), new ArrayList<Byte>(), new ArrayList<Short>(), new ArrayList<Long>());
validateSameTupleAsEB(a);
}
use of thrift.test.OneOfEach in project parquet-mr by apache.
the class TestParquetReadProtocol method testOneOfEach.
@Test
public void testOneOfEach() throws TException {
final List<Byte> bytes = new ArrayList<Byte>();
bytes.add((byte) 1);
final List<Short> shorts = new ArrayList<Short>();
shorts.add((short) 1);
final List<Long> longs = new ArrayList<Long>();
longs.add((long) 1);
OneOfEach a = new OneOfEach(true, false, (byte) 8, (short) 16, (int) 32, (long) 64, (double) 1234, "string", "å", false, ByteBuffer.wrap("a".getBytes()), bytes, shorts, longs);
validate(a);
}
Aggregations