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

Method toDataByteArrays

test/org/apache/pig/test/Util.java:265–271  ·  view source on GitHub ↗
(T[] input)

Source from the content-addressed store, hash-verified

263 }
264
265 static public<T> DataByteArray[] toDataByteArrays(T[] input) {
266 DataByteArray[] dbas = new DataByteArray[input.length];
267 for (int i = 0; i < input.length; i++) {
268 dbas[i] = (input[i] == null)?null:new DataByteArray(input[i].toString().getBytes());
269 }
270 return dbas;
271 }
272
273 static public Tuple loadNestTuple(Tuple t, int[][] input) throws ExecException {
274 for (int i = 0; i < input.length; i++) {

Calls 2

getBytesMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected