public class CastStringGroupToVarChar extends StringUnaryUDFDirect implements TruncStringOutput
VectorExpression.Type
childExpressions, inputTypes, outputType
Constructor and Description |
---|
CastStringGroupToVarChar() |
CastStringGroupToVarChar(int inputColumn,
int outputColumn) |
Modifier and Type | Method and Description |
---|---|
protected void |
func(BytesColumnVector outV,
byte[][] vector,
int[] start,
int[] length,
int i)
Do right trim and truncate for CHAR.
|
int |
getMaxLength() |
String |
getOutputType()
Returns type of the output column.
|
void |
setMaxLength(int maxLength) |
evaluate, getDescriptor, getInputColumn, getOutputColumn, setInputColumn, setOutputColumn
evaluateChildren, getChildExpressions, getInputTypes, setChildExpressions, setInputTypes, setOutputType, toString
public CastStringGroupToVarChar(int inputColumn, int outputColumn)
public CastStringGroupToVarChar()
protected void func(BytesColumnVector outV, byte[][] vector, int[] start, int[] length, int i)
func
in class StringUnaryUDFDirect
public String getOutputType()
VectorExpression
getOutputType
in class StringUnaryUDFDirect
public int getMaxLength()
getMaxLength
in interface TruncStringOutput
public void setMaxLength(int maxLength)
setMaxLength
in interface TruncStringOutput
Copyright © 2017 The Apache Software Foundation. All rights reserved.