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(org.apache.flink.api.common.JobID jobID,
org.apache.flink.core.fs.Path basePath,
org.apache.flink.core.fs.FileSystem fileSystem,
boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry) |
StateChangeFsUploader(org.apache.flink.api.common.JobID jobID,
org.apache.flink.core.fs.Path basePath,
org.apache.flink.core.fs.FileSystem fileSystem,
boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry,
java.util.function.BiFunction<org.apache.flink.core.fs.Path,Long,org.apache.flink.runtime.state.StreamStateHandle> handleFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.flink.core.fs.Path |
getBasePath() |
org.apache.flink.changelog.fs.OutputStreamWithPos |
prepareStream() |
generateFileName, upload@VisibleForTesting public static final String PATH_SUB_DIR
@VisibleForTesting
public StateChangeFsUploader(org.apache.flink.api.common.JobID jobID,
org.apache.flink.core.fs.Path basePath,
org.apache.flink.core.fs.FileSystem fileSystem,
boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry)
public StateChangeFsUploader(org.apache.flink.api.common.JobID jobID,
org.apache.flink.core.fs.Path basePath,
org.apache.flink.core.fs.FileSystem fileSystem,
boolean compression,
int bufferSize,
ChangelogStorageMetricGroup metrics,
TaskChangelogRegistry changelogRegistry,
java.util.function.BiFunction<org.apache.flink.core.fs.Path,Long,org.apache.flink.runtime.state.StreamStateHandle> handleFactory)
@VisibleForTesting public org.apache.flink.core.fs.Path getBasePath()
public org.apache.flink.changelog.fs.OutputStreamWithPos prepareStream()
throws IOException
IOExceptionpublic void close()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.