hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <>
Subject [jira] [Created] (HIVE-14201) Types: Remove hash-lookup from PrimitiveTypeInfo::getPrimitiveCategory()
Date Sat, 09 Jul 2016 02:09:10 GMT
Gopal V created HIVE-14201:

             Summary: Types: Remove hash-lookup from PrimitiveTypeInfo::getPrimitiveCategory()
                 Key: HIVE-14201
             Project: Hive
          Issue Type: Bug
            Reporter: Gopal V


  public PrimitiveCategory getPrimitiveCategory() {
    return getPrimitiveTypeEntry().primitiveCategory;

  public PrimitiveTypeEntry getPrimitiveTypeEntry() {
    return PrimitiveObjectInspectorUtils.getTypeEntryFromTypeName(typeName);

   * Get the TypeEntry for the given base type name (int, varchar, etc).
  public static PrimitiveTypeEntry getTypeEntryFromTypeName(String typeName) {
    return typeNameToTypeEntry.get(typeName);

  // Base type name to PrimitiveTypeEntry map.
  private static final Map<String, PrimitiveTypeEntry> typeNameToTypeEntry = new HashMap<String,

Not even a single intern() call there. SMH.

This message was sent by Atlassian JIRA

View raw message