org.apache.hadoop.hive.ql.udf.generic
Class SimpleGenericUDAFParameterInfo
java.lang.Object
org.apache.hadoop.hive.ql.udf.generic.SimpleGenericUDAFParameterInfo
- All Implemented Interfaces:
- GenericUDAFParameterInfo
public class SimpleGenericUDAFParameterInfo
- extends Object
- implements GenericUDAFParameterInfo
A simple implementation of GenericUDAFParameterInfo.
Method Summary |
TypeInfo[] |
getParameters()
|
boolean |
isAllColumns()
Returns true if the UDAF invocation was done via the wildcard
syntax FUNCTION(*). |
boolean |
isDistinct()
Returns true if the UDAF invocation was qualified with
DISTINCT keyword. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleGenericUDAFParameterInfo
public SimpleGenericUDAFParameterInfo(TypeInfo[] params,
boolean distinct,
boolean allColumns)
getParameters
public TypeInfo[] getParameters()
- Specified by:
getParameters
in interface GenericUDAFParameterInfo
- Returns:
- the parameter type list passed into the UDAF.
isDistinct
public boolean isDistinct()
- Description copied from interface:
GenericUDAFParameterInfo
- Returns true if the UDAF invocation was qualified with
DISTINCT keyword. Note that this is provided for informational
purposes only and the function implementation is not expected to ensure
the distinct property for the parameter values. That is handled by the
framework.
- Specified by:
isDistinct
in interface GenericUDAFParameterInfo
- Returns:
- true if the UDAF invocation was qualified with
DISTINCT keyword, false otherwise.
isAllColumns
public boolean isAllColumns()
- Description copied from interface:
GenericUDAFParameterInfo
- Returns true if the UDAF invocation was done via the wildcard
syntax FUNCTION(*). Note that this is provided for informational
purposes only and the function implementation is not expected to ensure
the wildcard handling of the target relation. That is handled by the
framework.
- Specified by:
isAllColumns
in interface GenericUDAFParameterInfo
- Returns:
- true if the UDAF invocation was done with a wildcard
instead of explicit parameter list.
Copyright © 2011 The Apache Software Foundation