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

Method genRandDBA

test/org/apache/pig/test/utils/GenRandomData.java:82–87  ·  view source on GitHub ↗
(Random r)

Source from the content-addressed store, hash-verified

80 }
81
82 public static DataByteArray genRandDBA(Random r){
83 if(r==null) return new DataByteArray("RANDOM".getBytes());
84 byte[] bytes = new byte[10];
85 r.nextBytes(bytes);
86 return new DataByteArray(bytes);
87 }
88
89 public static DataByteArray genRandTextDBA(Random r){
90 if(r==null) return new DataByteArray("RANDOM".getBytes());

Callers 10

testOperatorMethod · 0.95
testMethod · 0.95
testOperatorMethod · 0.95
testOperatorMethod · 0.95
testOperatorMethod · 0.95
pickTestMethod · 0.95
testOperatorMethod · 0.95
genRandSmallBagTupleMethod · 0.95

Calls 1

getBytesMethod · 0.65

Tested by

no test coverage detected