描述 hive 自定义 UDF 文档
describe hive custom UDF documentation
我在 Java 中创建了一个自定义 UDF,我可以在 Hive 中使用它。你能告诉我 how/where 我可以向这个 UDF 添加一些文档吗?
我想查看此文档,同时在配置单元中提供 DESCRIBE FUNCTION <CUSTOM UDF>
。
在您的 UDF class 上放置类型 'org.apache.hadoop.hive.ql.exec.Description' 的注释,并在值字段中添加您的描述
例如
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDF;
@Description(name="fantastic",
value="does the most fantastic thing ever")
public class FantasticUDF extends UDF {
....
}
我在 Java 中创建了一个自定义 UDF,我可以在 Hive 中使用它。你能告诉我 how/where 我可以向这个 UDF 添加一些文档吗?
我想查看此文档,同时在配置单元中提供 DESCRIBE FUNCTION <CUSTOM UDF>
。
在您的 UDF class 上放置类型 'org.apache.hadoop.hive.ql.exec.Description' 的注释,并在值字段中添加您的描述
例如
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDF;
@Description(name="fantastic",
value="does the most fantastic thing ever")
public class FantasticUDF extends UDF {
....
}