org.apache.hadoop.hive.ql.exec.vector.expressions
Class StringTrim
java.lang.Object
org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
org.apache.hadoop.hive.ql.exec.vector.expressions.StringUnaryUDFDirect
org.apache.hadoop.hive.ql.exec.vector.expressions.StringTrim
- All Implemented Interfaces:
- Serializable
public class StringTrim
- extends StringUnaryUDFDirect
- See Also:
- Serialized Form
|
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. |
StringTrim
public StringTrim(int inputColumn,
int outputColumn)
StringTrim
public StringTrim()
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.