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

Method createMap

test/org/apache/pig/test/Util.java:255–263  ·  view source on GitHub ↗
(String[] contents)

Source from the content-addressed store, hash-verified

253 }
254
255 static public Map<String, Object> createMap(String[] contents)
256 {
257 Map<String, Object> m = new HashMap<String, Object>();
258 for(int i = 0; i < contents.length; ) {
259 m.put(contents[i], contents[i+1]);
260 i += 2;
261 }
262 return m;
263 }
264
265 static public<T> DataByteArray[] toDataByteArrays(T[] input) {
266 DataByteArray[] dbas = new DataByteArray[input.length];

Callers 5

testSIZEMethod · 0.95
testMergeSchema3Method · 0.45
testMergeSchema6Method · 0.45
mergeSchemaMethod · 0.45

Calls 1

putMethod · 0.45

Tested by

no test coverage detected