private int getCharByteNum(String charset) throws SerDeException {
    if (!CHARSET_TO_BYTE_NUM.containsKey(charCharset)) {
      throw new SerDeException(
          format("%s isn't supported in Teradata Char Charset %s", charCharset, CHARSET_TO_BYTE_NUM.keySet()));
    } else {
      return CHARSET_TO_BYTE_NUM.get(charset);
    }
  }
Get the object inspector that can be used to navigate through the internal
structure of the Object returned from deserialize(...).
serde/src/java/org/apache/hadoop/hive/serde2/teradata/TeradataBinarySerde.java