org.apache.hadoop.hive.ql.udf
Interface SettableUDF

All Known Implementing Classes:
GenericUDFToVarchar

public interface SettableUDF

THIS INTERFACE IS UNSTABLE AND SHOULD NOT BE USED BY 3RD PARTY UDFS. Interface to allow passing of parameters to the UDF, before it is initialized. For example, to be able to pass the char length parameters to a char type cast.


Method Summary
 Object getParams()
           
 void setParams(Object params)
          Add data to UDF prior to initialization.
 

Method Detail

setParams

void setParams(Object params)
               throws UDFArgumentException
Add data to UDF prior to initialization. An exception may be thrown if the UDF doesn't know what to do with this data.

Parameters:
params - UDF-specific data to add to the UDF
Throws:
UDFArgumentException

getParams

Object getParams()


Copyright © 2012 The Apache Software Foundation