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

Method buildBinTuple

test/org/apache/pig/test/Util.java:214–229  ·  view source on GitHub ↗
(final Object... args)

Source from the content-addressed store, hash-verified

212 }
213
214 static public Tuple buildBinTuple(final Object... args) throws IOException {
215 return TupleFactory.getInstance().newTuple(Lists.transform(
216 Lists.newArrayList(args), new Function<Object, DataByteArray>() {
217 @Override
218 public DataByteArray apply(Object o) {
219 if (o == null) {
220 return null;
221 }
222 try {
223 return new DataByteArray(DataType.toBytes(o));
224 } catch (ExecException e) {
225 return null;
226 }
227 }
228 }));
229 }
230
231 static public <T>Tuple createTuple(T[] s)
232 {

Callers

nothing calls this directly

Calls 3

getInstanceMethod · 0.95
newTupleMethod · 0.65
transformMethod · 0.45

Tested by

no test coverage detected