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

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.StringRTrim
All Implemented Interfaces:
Serializable

public class StringRTrim
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
StringRTrim()
           
StringRTrim(int inputColumn, int outputColumn)
           
 
Method Summary
protected  void func(BytesColumnVector outV, byte[][] vector, int[] start, int[] length, int i)
          RTRIM element i of the vector, 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

StringRTrim

public StringRTrim(int inputColumn,
                   int outputColumn)

StringRTrim

public StringRTrim()
Method Detail

func

protected void func(BytesColumnVector outV,
                    byte[][] vector,
                    int[] start,
                    int[] length,
                    int i)
RTRIM element i of the vector, 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.