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

Method genNameToTypeMap

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

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

()

Source from the content-addressed store, hash-verified

276 * @return map
277 */
278 public static Map<String, Byte> genNameToTypeMap(){
279 byte[] types = genAllTypes();
280 String[] names = genAllTypeNames();
281 Map<String, Byte> ret = new HashMap<String, Byte>();
282 for(int i=0;i<types.length;i++){
283 ret.put(names[i], types[i]);
284 }
285 return ret;
286 }
287
288 /**
289 * Get the type name.

Callers

nothing calls this directly

Calls 3

genAllTypesMethod · 0.95
genAllTypeNamesMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected