|
| | UdfExecutor (byte[] thriftParams) throws ImpalaException |
| |
| | UdfExecutor (String jarFile, String udfPath, Type retType, Type...parameterTypes) throws ImpalaRuntimeException |
| |
| void | close () |
| |
| void | evaluate () throws ImpalaRuntimeException |
| |
| long | evaluate (Object...args) throws ImpalaRuntimeException |
| |
| Method | getMethod () |
| |
Definition at line 57 of file UdfExecutor.java.
| com.cloudera.impala.hive.executor.UdfExecutor.UdfExecutor |
( |
byte[] |
thriftParams | ) |
throws ImpalaException |
|
inline |
| com.cloudera.impala.hive.executor.UdfExecutor.UdfExecutor |
( |
String |
jarFile, |
|
|
String |
udfPath, |
|
|
Type |
retType, |
|
|
Type... |
parameterTypes |
|
) |
| throws ImpalaRuntimeException |
|
inline |
Creates a UdfExecutor object, loading the class and validating it has the proper function. This constructor is only used for testing.
- Parameters
-
| jarFile | Path to jar containing the UDF. null indicates to use the current jar file. |
| udfPath | fully qualified class path for the UDF |
Definition at line 143 of file UdfExecutor.java.
| void com.cloudera.impala.hive.executor.UdfExecutor.close |
( |
| ) |
|
|
inline |
Releases any resources allocated off the native heap.
Definition at line 179 of file UdfExecutor.java.
| void com.cloudera.impala.hive.executor.UdfExecutor.finalize |
( |
| ) |
throws Throwable |
|
inlineprotected |
| ClassLoader com.cloudera.impala.hive.executor.UdfExecutor.getClassLoader |
( |
String |
jarPath | ) |
throws MalformedURLException |
|
inlineprivate |
| Method com.cloudera.impala.hive.executor.UdfExecutor.getMethod |
( |
| ) |
|
|
inline |
| PrimitiveType com.cloudera.impala.hive.executor.UdfExecutor.getPrimitiveType |
( |
Class<?> |
c | ) |
|
|
inlineprivate |
| void com.cloudera.impala.hive.executor.UdfExecutor.init |
( |
String |
jarPath, |
|
|
String |
udfPath, |
|
|
Type |
retType, |
|
|
Type... |
parameterTypes |
|
) |
| throws ImpalaRuntimeException |
|
inlineprivate |
Initializes the UdfExecutor validating the UDF has the proper signature. This uses reflection to look up the "evaluate" function in the UDF class.
Definition at line 410 of file UdfExecutor.java.
| ArrayList<Long> com.cloudera.impala.hive.executor.UdfExecutor.allocations_ = Lists.newArrayList() |
|
package |
| Type [] com.cloudera.impala.hive.executor.UdfExecutor.argTypes_ |
|
private |
| Object [] com.cloudera.impala.hive.executor.UdfExecutor.inputArgs_ |
|
private |
| final int [] com.cloudera.impala.hive.executor.UdfExecutor.inputBufferOffsets_ |
|
private |
| final long com.cloudera.impala.hive.executor.UdfExecutor.inputBufferPtr_ |
|
private |
| final long com.cloudera.impala.hive.executor.UdfExecutor.inputNullsPtr_ |
|
private |
| Object [] com.cloudera.impala.hive.executor.UdfExecutor.inputObjects_ |
|
private |
| boolean [] com.cloudera.impala.hive.executor.UdfExecutor.isArgString_ |
|
private |
| final Logger com.cloudera.impala.hive.executor.UdfExecutor.LOG = Logger.getLogger(UdfExecutor.class) |
|
staticprivate |
| Method com.cloudera.impala.hive.executor.UdfExecutor.method_ |
|
private |
| int com.cloudera.impala.hive.executor.UdfExecutor.outBufferCapacity_ |
|
private |
| long com.cloudera.impala.hive.executor.UdfExecutor.outBufferStringPtr_ |
|
private |
| final long com.cloudera.impala.hive.executor.UdfExecutor.outputBufferPtr_ |
|
private |
| final long com.cloudera.impala.hive.executor.UdfExecutor.outputNullPtr_ |
|
private |
| final TBinaryProtocol.Factory com.cloudera.impala.hive.executor.UdfExecutor.protocolFactory |
|
staticprivate |
Initial value:=
new TBinaryProtocol.Factory()
Definition at line 63 of file UdfExecutor.java.
| Type com.cloudera.impala.hive.executor.UdfExecutor.retType_ |
|
private |
| UDF com.cloudera.impala.hive.executor.UdfExecutor.udf_ |
|
private |
| final String com.cloudera.impala.hive.executor.UdfExecutor.UDF_FUNCTION_NAME = "evaluate" |
|
staticprivate |
The documentation for this class was generated from the following file: