Examples of VarcharTypeParams


Examples of org.apache.hadoop.hive.serde2.typeinfo.VarcharTypeParams

  protected int maxLength = -1;

  LazyBinaryHiveVarchar(WritableHiveVarcharObjectInspector oi) {
    super(oi);
    // Check for params
    VarcharTypeParams typeParams = (VarcharTypeParams)oi.getTypeParams();
    if (typeParams == null) {
      throw new RuntimeException("varchar type used without type params");
    }
    maxLength = typeParams.length;
    data = new HiveVarcharWritable();
View Full Code Here

Examples of org.apache.hadoop.hive.serde2.typeinfo.VarcharTypeParams

    public HiveVarcharConverter(PrimitiveObjectInspector inputOI,
        SettableHiveVarcharObjectInspector outputOI) {
      this.inputOI = inputOI;
      this.outputOI = outputOI;
      VarcharTypeParams typeParams = (VarcharTypeParams) outputOI.getTypeParams();

      // unfortunately we seem to get instances of varchar object inspectors without params
      // when an old-style UDF has an evaluate() method with varchar arguments.
      // If we disallow varchar in old-style UDFs and only allow GenericUDFs to be defined
      // with varchar arguments, then we might be able to enforce this properly.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.