public class StateChangeFsUploader extends AbstractStateChangeFsUploader
StateChangeUploadScheduler
implementation that uploads the changes using
FileSystem
.StateChangeUploader.UploadTasksResult
Modifier and Type | Field and Description |
---|---|
static String |
PATH_SUB_DIR |
bufferSize, compression, metrics
Constructor and Description |
---|
StateChangeFsUploader(JobID jobID,
Path basePath,
FileSystem fileSystem,
boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry) |
StateChangeFsUploader(JobID jobID,
Path basePath,
FileSystem fileSystem,
boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry,
java.util.function.BiFunction<Path,Long,StreamStateHandle> handleFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Path |
getBasePath() |
org.apache.flink.changelog.fs.OutputStreamWithPos |
prepareStream() |
generateFileName, upload
@VisibleForTesting public static final String PATH_SUB_DIR
@VisibleForTesting public StateChangeFsUploader(JobID jobID, Path basePath, FileSystem fileSystem, boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry)
public StateChangeFsUploader(JobID jobID, Path basePath, FileSystem fileSystem, boolean compression, int bufferSize, ChangelogStorageMetricGroup metrics, TaskChangelogRegistry changelogRegistry, java.util.function.BiFunction<Path,Long,StreamStateHandle> handleFactory)
@VisibleForTesting public Path getBasePath()
public org.apache.flink.changelog.fs.OutputStreamWithPos prepareStream() throws IOException
IOException
public void close()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.