@Override
  public void transientInit(Configuration conf) throws HiveException {
    super.transientInit(conf);

    integerPrimitiveCategory = ((PrimitiveTypeInfo) outputTypeInfo).getPrimitiveCategory();
  }
Cast a string to a long.

If other functions besides cast need to take a string in and produce a long,
you can subclass this class or convert it to a superclass, and
implement different "func()" methods for each operation.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/CastStringToLong.java