| 构造器和说明 |
|---|
BatchOutput() |
| 限定符和类型 | 方法和说明 |
|---|---|
OutputType |
getOutputType() |
abstract void |
partitionInit(DataType[] schema,
Map<String,String> options)
每个分区数据开始输出时执行
|
abstract int |
run(DataType[] schema,
Object[][] row,
Map<String,String> options)
每个batch输出的时候执行
|
public OutputType getOutputType()
getOutputType 在接口中 UDFOutputpublic abstract void partitionInit(DataType[] schema, Map<String,String> options) throws Exception
schema - 数据类型数组options - 从前端配置低的配置Exception - 如果初始化过程中发生错误Copyright © 2024. All rights reserved.