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

Method testTupleSizeWithByteArrays

test/org/apache/pig/test/TestTuple.java:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }
101
102 @Test
103 public void testTupleSizeWithByteArrays() {
104 Tuple t = mTupleFactory.newTuple();
105 t.append(new DataByteArray("1234567"));
106 t.append(new DataByteArray("bar"));
107 long size = t.getMemorySize();
108 assertEquals("tuple size", 160, size);
109 }
110
111 @Test
112 public void testTupleSizeWithDoubles() {

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
getMemorySizeMethod · 0.95
newTupleMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected