| Package | Description |
|---|---|
| com.aliyun.odps.exec | |
| com.aliyun.odps.udf |
UDF API
主要包括
UDF(User Defined Function,用户自定义函数)
和 UDTF (User Defined Table-generating Function,用户自定义生成表函数) |
| com.aliyun.odps.udf.impl |
UDF SDK中用于内部实现的功能,这部分不属于API,接口随时可能改变,不推荐使用。
|
| Class and Description |
|---|
| ExecutionContext
运行时的执行上下文信息。
|
| Class and Description |
|---|
| BaseStorageHandler
This is the interface on top of which both Hive-compatible and ODPS storage handlers are built
Internal usage *ONLY* within ODPS framework.
|
| ContextFunction
拥有
ExecutionContext的一类自定义函数。 |
| DataAttributes
Provides interfaces to access different attributes of the underlying data, including the attributes provided
by the user, as well as different (system) properties that govern the underlying data, such as
the record columns, resources used, etc.
|
| DataCollector |
| ExecutionContext
运行时的执行上下文信息。
|
| Extractor
Base extractor class, user-defined extractors shall extend from this class
|
| InputFormat
TODO: see if we can remove this
|
| OdpsType
映射到ODPS数据类型,包括
STRING:字符串
BIGINT:长整数型
DOUBLE:双精度符点数类型
BOOLEAN:双精度符点数类型
IGNORE:忽略类型映射
不推荐直接使用。
|
| Outputer
Base outputer class, custom outputer shall extend from this class
|
| OutputFormat
TODO: see if we can remove this
OutputFormat describes the output-specification
|
| RecordReader
RecordReader converts the byte-oriented view of the input, provided by the InputSplit,
and presents a record-oriented Writable (which will usually de-serialized into
Record
by an implementation of RecordSerDe ). |
| RecordSerDe
SerDe interface for ODPS record to and from
Writable |
| RecordWriter
RecordWriter writes the output Writable record (usually serialized by an implementation of
RecordSerDe)to output. |
| TableRecordReader |
| UDFException |
UDTF
UDTF 是 User Defined Table-generating Function 缩写,用来解决一次函数调用输出多行数据的场景,也是唯一能返回多个字段的自定义函数。 |
| UDTFCollector |
| UDTFPuller |
| Class and Description |
|---|
| OdpsType
映射到ODPS数据类型,包括
STRING:字符串
BIGINT:长整数型
DOUBLE:双精度符点数类型
BOOLEAN:双精度符点数类型
IGNORE:忽略类型映射
不推荐直接使用。
|
| UDFException |
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.