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

Method genTypeToNameMap

src/org/apache/pig/data/DataType.java:264–272  ·  view source on GitHub ↗

Get a map of type values to type names. @return map

()

Source from the content-addressed store, hash-verified

262 * @return map
263 */
264 public static Map<Byte, String> genTypeToNameMap(){
265 byte[] types = genAllTypes();
266 String[] names = genAllTypeNames();
267 Map<Byte,String> ret = new HashMap<Byte, String>();
268 for(int i=0;i<types.length;i++){
269 ret.put(types[i], names[i]);
270 }
271 return ret;
272 }
273
274 /**
275 * Get a map of type names to type values.

Callers 5

testOperatorMethod · 0.95
compareDefaultTupleMethod · 0.95

Calls 3

genAllTypesMethod · 0.95
genAllTypeNamesMethod · 0.95
putMethod · 0.45

Tested by 1

testOperatorMethod · 0.76