org.apache.hadoop.hive.ql.exec.vector.expressions
Class StringTrim

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
      extended by org.apache.hadoop.hive.ql.exec.vector.expressions.StringUnaryUDFDirect
          extended by org.apache.hadoop.hive.ql.exec.vector.expressions.StringTrim
All Implemented Interfaces:
Serializable

public class StringTrim
extends StringUnaryUDFDirect

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
VectorExpression.Type
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
childExpressions, inputTypes, outputType
 
Constructor Summary
StringTrim()
           
StringTrim(int inputColumn, int outputColumn)
           
 
Method Summary
protected  void func(BytesColumnVector outV, byte[][] vector, int[] start, int[] length, int i)
          TRIM element i of the vector, eliminating blanks from the left and right sides of the string, and place the result in outV.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.StringUnaryUDFDirect
evaluate, getDescriptor, getInputColumn, getOutputColumn, getOutputType, setInputColumn, setOutputColumn
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
evaluateChildren, getChildExpressions, getInputTypes, setChildExpressions, setInputTypes, setOutputType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringTrim

public StringTrim(int inputColumn,
                  int outputColumn)

StringTrim

public StringTrim()
Method Detail

func

protected void func(BytesColumnVector outV,
                    byte[][] vector,
                    int[] start,
                    int[] length,
                    int i)
TRIM element i of the vector, eliminating blanks from the left and right sides of the string, and place the result in outV. Operate on the data in place, and set the output by reference to improve performance. Ignore null handling. That will be handled separately.

Specified by:
func in class StringUnaryUDFDirect


Copyright © 2014 The Apache Software Foundation. All rights reserved.