You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by az...@apache.org on 2020/01/16 15:13:21 UTC
[flink] 01/04: [FLINK-15605][State][TTL] Remove deprecated in 1.9
StateTtlConfig.TimeCharacteristic
This is an automated email from the ASF dual-hosted git repository.
azagrebin pushed a commit to branch release-1.10
in repository https://gitbox.apache.org/repos/asf/flink.git
commit dfff0660dc824970febf2cb9b4fc0c3fb594c8f4
Author: Andrey Zagrebin <az...@apache.org>
AuthorDate: Wed Jan 15 12:08:58 2020 +0100
[FLINK-15605][State][TTL] Remove deprecated in 1.9 StateTtlConfig.TimeCharacteristic
1.10 follow-up for FLINK-11825
---
.../flink/api/common/state/StateTtlConfig.java | 27 ----------------------
1 file changed, 27 deletions(-)
diff --git a/flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java b/flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
index bb69f04..24ccb62 100644
--- a/flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
+++ b/flink-core/src/main/java/org/apache/flink/api/common/state/StateTtlConfig.java
@@ -79,17 +79,6 @@ public class StateTtlConfig implements Serializable {
/**
* This option configures time scale to use for ttl.
- *
- * @deprecated will be removed in a future version in favor of {@link TtlTimeCharacteristic}
- */
- @Deprecated
- public enum TimeCharacteristic {
- /** Processing time, see also <code>TimeCharacteristic.ProcessingTime</code>. */
- ProcessingTime
- }
-
- /**
- * This option configures time scale to use for ttl.
*/
public enum TtlTimeCharacteristic {
/** Processing time, see also <code>org.apache.flink.streaming.api.TimeCharacteristic.ProcessingTime</code>. */
@@ -222,22 +211,6 @@ public class StateTtlConfig implements Serializable {
/**
* Sets the time characteristic.
*
- * @param timeCharacteristic The time characteristic configures time scale to use for ttl.
- *
- * @deprecated will be removed in a future version in favor of {@link #setTtlTimeCharacteristic}
- */
- @Deprecated
- @Nonnull
- public Builder setTimeCharacteristic(@Nonnull TimeCharacteristic timeCharacteristic) {
- checkArgument(timeCharacteristic.equals(TimeCharacteristic.ProcessingTime),
- "Only support TimeCharacteristic.ProcessingTime, this function has replaced by setTtlTimeCharacteristic.");
- setTtlTimeCharacteristic(TtlTimeCharacteristic.ProcessingTime);
- return this;
- }
-
- /**
- * Sets the time characteristic.
- *
* @param ttlTimeCharacteristic The time characteristic configures time scale to use for ttl.
*/
@Nonnull