public abstract class Outputer extends Object
| Constructor and Description |
|---|
Outputer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Interface for cleaning up outputer before exit.
|
abstract void |
output(Record record)
Interface for writing a record via output stream.
|
abstract void |
setup(ExecutionContext ctx,
OutputStreamSet outputStreamSet,
DataAttributes attributes)
Interface for setting up the outputer
|
public abstract void setup(ExecutionContext ctx, OutputStreamSet outputStreamSet, DataAttributes attributes) throws IOException
ctx: - the ExecutionContext which contains context information that may be useful
for setting up user code execution environment.outputStreamSet: - set of output streams this outputer write to, when customized external storage is used,
this will be empty and user will be responsible for interacting with customized storage.attributes: - encapsulate any attributes needed that describe the associated output data and/or
any other useful information for outputerIOExceptionpublic abstract void output(Record record) throws IOException
record: - a record for output.IOExceptionpublic abstract void close()
throws IOException
IOExceptionCopyright © 2021 Alibaba Cloud Computing. All rights reserved.