public interface FlinkPipelineOptions extends PipelineOptions, ApplicationNameOptions, StreamingOptions, FileStagingOptions, VersionDependentFlinkPipelineOptions
Avoid using `org.apache.flink.*` members below. This allows including the flink runner without requiring flink on the classpath (e.g. to use with the direct runner).
Modifier and Type | Interface and Description |
---|---|
static class |
FlinkPipelineOptions.MaxBundleSizeFactory
Maximum bundle size factory.
|
static class |
FlinkPipelineOptions.MaxBundleTimeFactory
Maximum bundle time factory.
|
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO |
static java.lang.String |
EXACTLY_ONCE |
static java.lang.String |
PIPELINED |
Modifier and Type | Method and Description |
---|---|
static FlinkPipelineOptions |
defaults() |
java.lang.Boolean |
getAllowNonRestoredState() |
boolean |
getAttachedMode() |
java.lang.Long |
getAutoWatermarkInterval() |
java.lang.Long |
getCheckpointingInterval() |
java.lang.String |
getCheckpointingMode() |
java.lang.Long |
getCheckpointTimeoutMillis() |
java.lang.Boolean |
getDisableMetrics() |
java.lang.Boolean |
getEnableStableInputDrain() |
java.lang.String |
getExecutionModeForBatch() |
java.lang.Long |
getExecutionRetryDelay() |
java.lang.Boolean |
getFailOnCheckpointingErrors() |
java.lang.Boolean |
getFasterCopy() |
java.lang.Long |
getFileInputSplitMaxSizeMB() |
boolean |
getFinishBundleBeforeCheckpointing() |
java.lang.String |
getFlinkConfDir() |
java.lang.String |
getFlinkMaster()
The url of the Flink JobManager on which to execute pipelines.
|
boolean |
getForceUnalignedCheckpointEnabled() |
int |
getJobCheckIntervalInSecs() |
java.lang.Long |
getLatencyTrackingInterval() |
java.lang.Long |
getMaxBundleSize() |
java.lang.Long |
getMaxBundleTimeMills() |
java.lang.Integer |
getMaxParallelism() |
java.lang.Long |
getMinPauseBetweenCheckpoints() |
java.lang.Integer |
getNumberOfExecutionRetries() |
int |
getNumConcurrentCheckpoints() |
java.lang.Boolean |
getObjectReuse() |
java.lang.Boolean |
getOperatorChaining() |
java.lang.Integer |
getParallelism() |
java.lang.Boolean |
getReIterableGroupByKeyResult() |
java.lang.String |
getReportCheckpointDuration() |
java.lang.Boolean |
getRetainExternalizedCheckpointsOnCancellation() |
java.lang.String |
getSavepointPath() |
java.lang.Long |
getShutdownSourcesAfterIdleMs() |
java.lang.String |
getStateBackend() |
java.lang.Class<? extends FlinkStateBackendFactory> |
getStateBackendFactory()
Deprecated.
Please use setStateBackend below.
|
java.lang.String |
getStateBackendStoragePath() |
boolean |
getUnalignedCheckpointEnabled() |
java.lang.Boolean |
isAutoBalanceWriteFilesShardingEnabled() |
java.lang.Boolean |
isExternalizedCheckpointsEnabled()
Enables or disables externalized checkpoints.
|
void |
setAllowNonRestoredState(java.lang.Boolean allowNonRestoredState) |
void |
setAttachedMode(boolean attachedMode) |
void |
setAutoBalanceWriteFilesShardingEnabled(java.lang.Boolean autoBalanceWriteFilesShardingEnabled) |
void |
setAutoWatermarkInterval(java.lang.Long interval) |
void |
setCheckpointingInterval(java.lang.Long interval) |
void |
setCheckpointingMode(java.lang.String mode) |
void |
setCheckpointTimeoutMillis(java.lang.Long checkpointTimeoutMillis) |
void |
setDisableMetrics(java.lang.Boolean disableMetrics) |
void |
setEnableStableInputDrain(java.lang.Boolean enableStableInputDrain) |
void |
setExecutionModeForBatch(java.lang.String executionMode) |
void |
setExecutionRetryDelay(java.lang.Long delay) |
void |
setExternalizedCheckpointsEnabled(java.lang.Boolean externalCheckpoints) |
void |
setFailOnCheckpointingErrors(java.lang.Boolean failOnCheckpointingErrors) |
void |
setFasterCopy(java.lang.Boolean fasterCopy) |
void |
setFileInputSplitMaxSizeMB(java.lang.Long fileInputSplitMaxSizeMB) |
void |
setFinishBundleBeforeCheckpointing(boolean finishBundleBeforeCheckpointing) |
void |
setFlinkConfDir(java.lang.String confDir) |
void |
setFlinkMaster(java.lang.String value) |
void |
setForceUnalignedCheckpointEnabled(boolean forceUnalignedCheckpointEnabled) |
void |
setJobCheckIntervalInSecs(int seconds) |
void |
setLatencyTrackingInterval(java.lang.Long interval) |
void |
setMaxBundleSize(java.lang.Long size) |
void |
setMaxBundleTimeMills(java.lang.Long time) |
void |
setMaxParallelism(java.lang.Integer value) |
void |
setMinPauseBetweenCheckpoints(java.lang.Long minPauseInterval) |
void |
setNumberOfExecutionRetries(java.lang.Integer retries) |
void |
setNumConcurrentCheckpoints(int maxConcurrentCheckpoints) |
void |
setObjectReuse(java.lang.Boolean reuse) |
void |
setOperatorChaining(java.lang.Boolean chaining) |
void |
setParallelism(java.lang.Integer value) |
void |
setReIterableGroupByKeyResult(java.lang.Boolean reIterableGroupByKeyResult) |
void |
setReportCheckpointDuration(java.lang.String metricNamespace) |
void |
setRetainExternalizedCheckpointsOnCancellation(java.lang.Boolean retainOnCancellation) |
void |
setSavepointPath(java.lang.String path) |
void |
setShutdownSourcesAfterIdleMs(java.lang.Long timeoutMs) |
void |
setStateBackend(java.lang.String stateBackend) |
void |
setStateBackendFactory(java.lang.Class<? extends FlinkStateBackendFactory> stateBackendFactory)
Deprecated.
Please use setStateBackend below.
|
void |
setStateBackendStoragePath(java.lang.String path) |
void |
setUnalignedCheckpointEnabled(boolean unalignedCheckpointEnabled) |
getUpdateCompatibilityVersion, isStreaming, setStreaming, setUpdateCompatibilityVersion, updateCompatibilityVersionLessThan
getAppName, setAppName
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
getFilesToStage, setFilesToStage
getUseDataStreamForBatch, setUseDataStreamForBatch
static final java.lang.String AUTO
static final java.lang.String PIPELINED
static final java.lang.String EXACTLY_ONCE
@Default.String(value="[auto]") java.lang.String getFlinkMaster()
void setFlinkMaster(java.lang.String value)
@Default.Integer(value=-1) java.lang.Integer getParallelism()
void setParallelism(java.lang.Integer value)
@Default.Integer(value=-1) java.lang.Integer getMaxParallelism()
void setMaxParallelism(java.lang.Integer value)
@Default.Long(value=-1L) java.lang.Long getCheckpointingInterval()
void setCheckpointingInterval(java.lang.Long interval)
@Default.String(value="EXACTLY_ONCE") java.lang.String getCheckpointingMode()
void setCheckpointingMode(java.lang.String mode)
@Default.Long(value=-1L) java.lang.Long getCheckpointTimeoutMillis()
void setCheckpointTimeoutMillis(java.lang.Long checkpointTimeoutMillis)
@Default.Long(value=-1L) java.lang.Long getMinPauseBetweenCheckpoints()
void setMinPauseBetweenCheckpoints(java.lang.Long minPauseInterval)
@Default.Integer(value=1) int getNumConcurrentCheckpoints()
void setNumConcurrentCheckpoints(int maxConcurrentCheckpoints)
@Default.Boolean(value=true) java.lang.Boolean getFailOnCheckpointingErrors()
void setFailOnCheckpointingErrors(java.lang.Boolean failOnCheckpointingErrors)
@Default.Boolean(value=false) boolean getFinishBundleBeforeCheckpointing()
void setFinishBundleBeforeCheckpointing(boolean finishBundleBeforeCheckpointing)
@Default.Boolean(value=false) boolean getUnalignedCheckpointEnabled()
void setUnalignedCheckpointEnabled(boolean unalignedCheckpointEnabled)
@Default.Boolean(value=false) boolean getForceUnalignedCheckpointEnabled()
void setForceUnalignedCheckpointEnabled(boolean forceUnalignedCheckpointEnabled)
@Default.Long(value=-1L) java.lang.Long getShutdownSourcesAfterIdleMs()
void setShutdownSourcesAfterIdleMs(java.lang.Long timeoutMs)
@Default.Integer(value=-1) java.lang.Integer getNumberOfExecutionRetries()
void setNumberOfExecutionRetries(java.lang.Integer retries)
@Default.Integer(value=5) int getJobCheckIntervalInSecs()
void setJobCheckIntervalInSecs(int seconds)
@Default.Boolean(value=true) boolean getAttachedMode()
void setAttachedMode(boolean attachedMode)
@Default.Long(value=-1L) java.lang.Long getExecutionRetryDelay()
void setExecutionRetryDelay(java.lang.Long delay)
@Default.Boolean(value=false) java.lang.Boolean getObjectReuse()
void setObjectReuse(java.lang.Boolean reuse)
@Default.Boolean(value=true) java.lang.Boolean getOperatorChaining()
void setOperatorChaining(java.lang.Boolean chaining)
@Deprecated java.lang.Class<? extends FlinkStateBackendFactory> getStateBackendFactory()
@Deprecated void setStateBackendFactory(java.lang.Class<? extends FlinkStateBackendFactory> stateBackendFactory)
void setStateBackend(java.lang.String stateBackend)
java.lang.String getStateBackend()
void setStateBackendStoragePath(java.lang.String path)
java.lang.String getStateBackendStoragePath()
@Default.Boolean(value=false) java.lang.Boolean getDisableMetrics()
void setDisableMetrics(java.lang.Boolean disableMetrics)
@Default.Boolean(value=false) java.lang.Boolean isExternalizedCheckpointsEnabled()
void setExternalizedCheckpointsEnabled(java.lang.Boolean externalCheckpoints)
@Default.Boolean(value=false) java.lang.Boolean getRetainExternalizedCheckpointsOnCancellation()
void setRetainExternalizedCheckpointsOnCancellation(java.lang.Boolean retainOnCancellation)
@Default.InstanceFactory(value=FlinkPipelineOptions.MaxBundleSizeFactory.class) java.lang.Long getMaxBundleSize()
void setMaxBundleSize(java.lang.Long size)
@Default.InstanceFactory(value=FlinkPipelineOptions.MaxBundleTimeFactory.class) java.lang.Long getMaxBundleTimeMills()
void setMaxBundleTimeMills(java.lang.Long time)
@Default.Long(value=0L) java.lang.Long getLatencyTrackingInterval()
void setLatencyTrackingInterval(java.lang.Long interval)
java.lang.Long getAutoWatermarkInterval()
void setAutoWatermarkInterval(java.lang.Long interval)
@Default.String(value="PIPELINED") java.lang.String getExecutionModeForBatch()
void setExecutionModeForBatch(java.lang.String executionMode)
java.lang.String getSavepointPath()
void setSavepointPath(java.lang.String path)
@Default.Boolean(value=false) java.lang.Boolean getAllowNonRestoredState()
void setAllowNonRestoredState(java.lang.Boolean allowNonRestoredState)
@Default.Boolean(value=false) java.lang.Boolean isAutoBalanceWriteFilesShardingEnabled()
void setAutoBalanceWriteFilesShardingEnabled(java.lang.Boolean autoBalanceWriteFilesShardingEnabled)
java.lang.String getReportCheckpointDuration()
void setReportCheckpointDuration(java.lang.String metricNamespace)
@Default.Boolean(value=false) java.lang.Boolean getReIterableGroupByKeyResult()
void setReIterableGroupByKeyResult(java.lang.Boolean reIterableGroupByKeyResult)
@Default.Boolean(value=false) java.lang.Boolean getFasterCopy()
void setFasterCopy(java.lang.Boolean fasterCopy)
java.lang.String getFlinkConfDir()
void setFlinkConfDir(java.lang.String confDir)
@Default.Long(value=0L) java.lang.Long getFileInputSplitMaxSizeMB()
void setFileInputSplitMaxSizeMB(java.lang.Long fileInputSplitMaxSizeMB)
@Default.Boolean(value=false) java.lang.Boolean getEnableStableInputDrain()
void setEnableStableInputDrain(java.lang.Boolean enableStableInputDrain)
static FlinkPipelineOptions defaults()