org.apache.hadoop.hive.ql.exec.vector.expressions
Class FuncRandNoSeed
java.lang.Object
org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression
org.apache.hadoop.hive.ql.exec.vector.expressions.FuncRandNoSeed
- All Implemented Interfaces:
- Serializable
public class FuncRandNoSeed
- extends VectorExpression
Implements vectorized rand() function evaluation.
- See Also:
- Serialized Form
FuncRandNoSeed
public FuncRandNoSeed(int outputCol)
FuncRandNoSeed
public FuncRandNoSeed()
evaluate
public void evaluate(VectorizedRowBatch batch)
- Description copied from class:
VectorExpression
- This is the primary method to implement expression logic.
- Specified by:
evaluate
in class VectorExpression
getOutputColumn
public int getOutputColumn()
- Description copied from class:
VectorExpression
- Returns the index of the output column in the array
of column vectors. If not applicable, -1 is returned.
- Specified by:
getOutputColumn
in class VectorExpression
- Returns:
- Index of the output column
getOutputCol
public int getOutputCol()
setOutputCol
public void setOutputCol(int outputCol)
getRandom
public Random getRandom()
setRandom
public void setRandom(Random random)
getOutputType
public String getOutputType()
- Description copied from class:
VectorExpression
- Returns type of the output column.
- Overrides:
getOutputType
in class VectorExpression
getDescriptor
public VectorExpressionDescriptor.Descriptor getDescriptor()
- Specified by:
getDescriptor
in class VectorExpression
Copyright © 2014 The Apache Software Foundation. All rights reserved.