IN
- Input tuple typeStreamingFileSink
for writing to files from a streaming program.@PublicEvolving @Deprecated public abstract class WriteSinkFunction<IN> extends Object implements SinkFunction<IN>
SinkFunction.Context<T>
Modifier and Type | Field and Description |
---|---|
protected WriteFormat<IN> |
format
Deprecated.
|
protected String |
path
Deprecated.
|
protected ArrayList<IN> |
tupleList
Deprecated.
|
Constructor and Description |
---|
WriteSinkFunction(String path,
WriteFormat<IN> format)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanFile(String path)
Deprecated.
Creates target file if it does not exist, cleans it if it exists.
|
void |
invoke(IN tuple)
Deprecated.
Implementation of the invoke method of the SinkFunction class.
|
protected abstract void |
resetParameters()
Deprecated.
Statements to be executed after writing a batch goes here.
|
protected abstract boolean |
updateCondition()
Deprecated.
Condition for writing the contents of tupleList and clearing it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invoke
protected final String path
protected WriteFormat<IN> format
public WriteSinkFunction(String path, WriteFormat<IN> format)
protected void cleanFile(String path)
path
- is the path to the location where the tuples are writtenprotected abstract boolean updateCondition()
protected abstract void resetParameters()
public void invoke(IN tuple)
invoke
in interface SinkFunction<IN>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.