Class WriterProperties
java.lang.Object
org.apache.flink.streaming.api.functions.sink.filesystem.WriterProperties
This class describes the property of the
BucketWriter.-
Constructor Summary
ConstructorsConstructorDescriptionWriterProperties(org.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable> inProgressFileRecoverableSerializer, org.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable> pendingFileRecoverableSerializer, boolean supportsResume) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable>org.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable>boolean
-
Constructor Details
-
WriterProperties
public WriterProperties(org.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable> inProgressFileRecoverableSerializer, org.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable> pendingFileRecoverableSerializer, boolean supportsResume)
-
-
Method Details
-
supportsResume
public boolean supportsResume()- Returns:
- Whether the
BucketWritersupport appending data to the restored the in-progress file or not.
-
getPendingFileRecoverableSerializer
public org.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable> getPendingFileRecoverableSerializer()- Returns:
- the serializer for the
InProgressFileWriter.PendingFileRecoverable.
-
getInProgressFileRecoverableSerializer
public org.apache.flink.core.io.SimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable> getInProgressFileRecoverableSerializer()- Returns:
- the serializer for the
InProgressFileWriter.InProgressFileRecoverable.
-