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

Method apply

test/org/apache/pig/test/Util.java:217–227  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

toBytesMethod · 0.95

Tested by

no test coverage detected