MCPcopy Create free account
hub / github.com/apache/pig / testNestTuple

Method testNestTuple

test/org/apache/pig/test/TestDataModel.java:128–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 @Test
129 public void testNestTuple() throws Exception {
130 TupleFactory tf = TupleFactory.getInstance();
131
132 int[][] input1 = { { 1, 2, 3, 4, 5 }, { 1, 2, 3, 4, 5 }, { 1, 2, 3, 4, 5 },
133 { 1, 2, 3, 4, 5 }, { 1, 2, 3, 4, 5 } };
134 int[][] input2 = { { 1, 2 }, { 1, 2 } };
135
136 Tuple n1 = Util.loadNestTuple(tf.newTuple(input1.length), input1);
137 Tuple n2 = tf.newTuple();
138
139 n2 = Util.loadNestTuple(tf.newTuple(input2.length), input2);
140 }
141
142 @Test
143 public void testReadWrite() throws Exception {

Callers

nothing calls this directly

Calls 3

getInstanceMethod · 0.95
loadNestTupleMethod · 0.95
newTupleMethod · 0.95

Tested by

no test coverage detected