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

Method loadNestTuple

test/org/apache/pig/test/Util.java:148–157  ·  view source on GitHub ↗
(Tuple t, int[] input)

Source from the content-addressed store, hash-verified

146 }
147
148 static public Tuple loadNestTuple(Tuple t, int[] input) throws ExecException {
149 DataBag bag = BagFactory.getInstance().newDefaultBag();
150 for(int i = 0; i < input.length; i++) {
151 Tuple f = TupleFactory.getInstance().newTuple(1);
152 f.set(0, input[i]);
153 bag.add(f);
154 }
155 t.set(0, bag);
156 return t;
157 }
158
159 static public Tuple loadNestTuple(Tuple t, long[] input) throws ExecException {
160 DataBag bag = BagFactory.getInstance().newDefaultBag();

Callers 8

algebraicAVGMethod · 0.95
testNestTupleMethod · 0.95
setUpMethod · 0.95
testCOUNTMethod · 0.95
testCOUNTFinalMethod · 0.95
testCOUNT_STARMethod · 0.95
testCOUNT_STARFinalMethod · 0.95

Calls 7

getInstanceMethod · 0.95
getInstanceMethod · 0.95
setMethod · 0.95
addMethod · 0.95
loadFlatTupleMethod · 0.95
newTupleMethod · 0.65
newDefaultBagMethod · 0.45

Tested by

no test coverage detected