public abstract class Extractor extends Object
| Constructor and Description |
|---|
Extractor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Interface for operations upon extractor exit, implementation can be no-op
|
abstract Record |
extract()
Interface for extracting a schematized record from an input stream
|
abstract void |
setup(ExecutionContext ctx,
InputStreamSet inputs,
DataAttributes attributes)
Interface for setting up the extractor, implementation can be a no-op
|
public abstract void setup(ExecutionContext ctx, InputStreamSet inputs, DataAttributes attributes) throws IOException
ctx: - the ExecutionContext which contains context information that may be useful
for setting up user code execution environmentinputs: - set of input streams, each corresponding to one input fileattributes: - encapsulate any attributes needed that describe the associated input dataIOExceptionpublic abstract Record extract() throws IOException
IOExceptionpublic abstract void close()
throws IOException
IOExceptionCopyright © 2021 Alibaba Cloud Computing. All rights reserved.