@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Resolve
UDTF的输入输出类型。
分别用于指定 UDTF.process(Object[]) 和 UDTF.forward(Object[]) 的类型,
语法如下
@Resolve({ signature })
signature: arg_type_list '->' type_list
arg_type_list: type_list | ''
type_list: [type_list ','] type
type: 'bigint' | 'string' | 'double' | 'boolean'
比如:
@Resolve({"->string"}) // 参数为空,输出一列string字段
@Resolve({"bigint,boolean->string,double"}) // 参数为bigint,boolean,输出string,double字段
public abstract String[] value
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.