Skip to content

Commit aac4e8b

Browse files
committed
[FLINK-36257][API] Remove easy-to-drop deprecated API
1 parent 1d1bf5c commit aac4e8b

File tree

11 files changed

+0
-644
lines changed

11 files changed

+0
-644
lines changed

flink-formats/flink-orc/src/main/java/org/apache/flink/orc/OrcColumnarRowFileInputFormat.java

Lines changed: 0 additions & 55 deletions
This file was deleted.

flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/avro/ParquetAvroWriters.java

Lines changed: 0 additions & 71 deletions
This file was deleted.

flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointReader.java

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@ public static SavepointReader read(
143143
this.stateBackend = stateBackend;
144144
}
145145

146-
/** @deprecated use {@link #readListState(OperatorIdentifier, String, TypeInformation)} */
147-
@Deprecated
148-
public <T> DataStream<T> readListState(String uid, String name, TypeInformation<T> typeInfo)
149-
throws IOException {
150-
return readListState(OperatorIdentifier.forUid(uid), name, typeInfo);
151-
}
152-
153146
/**
154147
* Read operator {@code ListState} from a {@code Savepoint}.
155148
*
@@ -166,17 +159,6 @@ public <T> DataStream<T> readListState(
166159
return readListState(identifier, typeInfo, new ListStateDescriptor<>(name, typeInfo));
167160
}
168161

169-
/**
170-
* @deprecated use {@link #readListState(OperatorIdentifier, String, TypeInformation,
171-
* TypeSerializer)}
172-
*/
173-
@Deprecated
174-
public <T> DataStream<T> readListState(
175-
String uid, String name, TypeInformation<T> typeInfo, TypeSerializer<T> serializer)
176-
throws IOException {
177-
return readListState(OperatorIdentifier.forUid(uid), name, typeInfo, serializer);
178-
}
179-
180162
/**
181163
* Read operator {@code ListState} from a {@code Savepoint} when a custom serializer was used;
182164
* e.g., a different serializer than the one returned by {@code
@@ -216,13 +198,6 @@ private <T> DataStream<T> readListState(
216198
return SourceBuilder.fromFormat(env, inputFormat, typeInfo);
217199
}
218200

219-
/** @deprecated use {@link #readUnionState(OperatorIdentifier, String, TypeInformation)} */
220-
@Deprecated
221-
public <T> DataStream<T> readUnionState(String uid, String name, TypeInformation<T> typeInfo)
222-
throws IOException {
223-
return readListState(OperatorIdentifier.forUid(uid), name, typeInfo);
224-
}
225-
226201
/**
227202
* Read operator {@code UnionState} from a {@code Savepoint}.
228203
*
@@ -239,16 +214,6 @@ public <T> DataStream<T> readUnionState(
239214
return readUnionState(identifier, typeInfo, new ListStateDescriptor<>(name, typeInfo));
240215
}
241216

242-
/**
243-
* @deprecated use {@link #readUnionState(OperatorIdentifier, String, TypeInformation,
244-
* TypeSerializer)}
245-
*/
246-
public <T> DataStream<T> readUnionState(
247-
String uid, String name, TypeInformation<T> typeInfo, TypeSerializer<T> serializer)
248-
throws IOException {
249-
return readUnionState(OperatorIdentifier.forUid(uid), name, typeInfo, serializer);
250-
}
251-
252217
/**
253218
* Read operator {@code UnionState} from a {@code Savepoint} when a custom serializer was used;
254219
* e.g., a different serializer than the one returned by {@code
@@ -288,20 +253,6 @@ private <T> DataStream<T> readUnionState(
288253
return SourceBuilder.fromFormat(env, inputFormat, typeInfo);
289254
}
290255

291-
/**
292-
* @deprecated use {@link #readBroadcastState(OperatorIdentifier, String, TypeInformation,
293-
* TypeInformation)}
294-
*/
295-
@Deprecated
296-
public <K, V> DataStream<Tuple2<K, V>> readBroadcastState(
297-
String uid,
298-
String name,
299-
TypeInformation<K> keyTypeInfo,
300-
TypeInformation<V> valueTypeInfo)
301-
throws IOException {
302-
return readBroadcastState(OperatorIdentifier.forUid(uid), name, keyTypeInfo, valueTypeInfo);
303-
}
304-
305256
/**
306257
* Read operator {@code BroadcastState} from a {@code Savepoint}.
307258
*
@@ -327,28 +278,6 @@ public <K, V> DataStream<Tuple2<K, V>> readBroadcastState(
327278
new MapStateDescriptor<>(name, keyTypeInfo, valueTypeInfo));
328279
}
329280

330-
/**
331-
* @deprecated use {@link #readBroadcastState(OperatorIdentifier, String, TypeInformation,
332-
* TypeInformation, TypeSerializer, TypeSerializer)}
333-
*/
334-
@Deprecated
335-
public <K, V> DataStream<Tuple2<K, V>> readBroadcastState(
336-
String uid,
337-
String name,
338-
TypeInformation<K> keyTypeInfo,
339-
TypeInformation<V> valueTypeInfo,
340-
TypeSerializer<K> keySerializer,
341-
TypeSerializer<V> valueSerializer)
342-
throws IOException {
343-
return readBroadcastState(
344-
OperatorIdentifier.forUid(uid),
345-
name,
346-
keyTypeInfo,
347-
valueTypeInfo,
348-
keySerializer,
349-
valueSerializer);
350-
}
351-
352281
/**
353282
* Read operator {@code BroadcastState} from a {@code Savepoint} when a custom serializer was
354283
* used; e.g., a different serializer than the one returned by {@code
@@ -399,13 +328,6 @@ private <K, V> DataStream<Tuple2<K, V>> readBroadcastState(
399328
env, inputFormat, new TupleTypeInfo<>(keyTypeInfo, valueTypeInfo));
400329
}
401330

402-
/** @deprecated use {@link #readKeyedState(OperatorIdentifier, KeyedStateReaderFunction)} */
403-
@Deprecated
404-
public <K, OUT> DataStream<OUT> readKeyedState(
405-
String uid, KeyedStateReaderFunction<K, OUT> function) throws IOException {
406-
return readKeyedState(OperatorIdentifier.forUid(uid), function);
407-
}
408-
409331
/**
410332
* Read keyed state from an operator in a {@code Savepoint}.
411333
*
@@ -455,20 +377,6 @@ public <K, OUT> DataStream<OUT> readKeyedState(
455377
return readKeyedState(identifier, function, keyTypeInfo, outType);
456378
}
457379

458-
/**
459-
* @deprecated use {@link #readKeyedState(OperatorIdentifier, KeyedStateReaderFunction,
460-
* TypeInformation, TypeInformation)}
461-
*/
462-
@Deprecated
463-
public <K, OUT> DataStream<OUT> readKeyedState(
464-
String uid,
465-
KeyedStateReaderFunction<K, OUT> function,
466-
TypeInformation<K> keyTypeInfo,
467-
TypeInformation<OUT> outTypeInfo)
468-
throws IOException {
469-
return readKeyedState(OperatorIdentifier.forUid(uid), function, keyTypeInfo, outTypeInfo);
470-
}
471-
472380
/**
473381
* Read keyed state from an operator in a {@code Savepoint}.
474382
*

flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ public class SavepointWriter {
6666
private final Map<OperatorIdentifier, OperatorIdentifier> uidTransformationMap =
6767
new HashMap<>();
6868

69-
/** @deprecated use {@link #fromExistingSavepoint(StreamExecutionEnvironment, String)} */
70-
@Deprecated
71-
public static SavepointWriter fromExistingSavepoint(String path) throws IOException {
72-
return new SavepointWriter(readSavepointMetadata(path), null, null);
73-
}
74-
7569
/**
7670
* Loads an existing savepoint. Useful if you want to modify or extend the state of an existing
7771
* application. The savepoint will be written using the state backend defined via the clusters
@@ -87,24 +81,13 @@ public static SavepointWriter fromExistingSavepoint(
8781
return new SavepointWriter(readSavepointMetadata(path), null, executionEnvironment);
8882
}
8983

90-
/**
91-
* @deprecated use {@link #fromExistingSavepoint(StreamExecutionEnvironment, String,
92-
* StateBackend)}
93-
*/
94-
@Deprecated
95-
public static SavepointWriter fromExistingSavepoint(String path, StateBackend stateBackend)
96-
throws IOException {
97-
return new SavepointWriter(readSavepointMetadata(path), stateBackend, null);
98-
}
99-
10084
/**
10185
* Loads an existing savepoint. Useful if you want to modify or extend the state of an existing
10286
* application.
10387
*
10488
* @param path The path to an existing savepoint on disk.
10589
* @param stateBackend The state backend of the savepoint.
10690
* @return A {@link SavepointWriter}.
107-
* @see #fromExistingSavepoint(String)
10891
*/
10992
public static SavepointWriter fromExistingSavepoint(
11093
StreamExecutionEnvironment executionEnvironment, String path, StateBackend stateBackend)
@@ -128,12 +111,6 @@ private static SavepointMetadataV2 readSavepointMetadata(String path) throws IOE
128111
maxParallelism, metadata.getMasterStates(), metadata.getOperatorStates());
129112
}
130113

131-
/** @deprecated use {@link #newSavepoint(StreamExecutionEnvironment, int)} */
132-
@Deprecated
133-
public static SavepointWriter newSavepoint(int maxParallelism) {
134-
return new SavepointWriter(createSavepointMetadata(maxParallelism), null, null);
135-
}
136-
137114
/**
138115
* Creates a new savepoint. The savepoint will be written using the state backend defined via
139116
* the clusters configuration.
@@ -149,12 +126,6 @@ public static SavepointWriter newSavepoint(
149126
createSavepointMetadata(maxParallelism), null, executionEnvironment);
150127
}
151128

152-
/** @deprecated use {@link #newSavepoint(StreamExecutionEnvironment, StateBackend, int)} */
153-
@Deprecated
154-
public static SavepointWriter newSavepoint(StateBackend stateBackend, int maxParallelism) {
155-
return new SavepointWriter(createSavepointMetadata(maxParallelism), stateBackend, null);
156-
}
157-
158129
/**
159130
* Creates a new savepoint.
160131
*
@@ -205,12 +176,6 @@ private SavepointWriter(
205176
this.executionEnvironment = executionEnvironment;
206177
}
207178

208-
/** @deprecated use {@link #removeOperator(OperatorIdentifier)} */
209-
@Deprecated
210-
public SavepointWriter removeOperator(String uid) {
211-
return removeOperator(OperatorIdentifier.forUid(uid));
212-
}
213-
214179
/**
215180
* Drop an existing operator from the savepoint.
216181
*
@@ -222,12 +187,6 @@ public SavepointWriter removeOperator(OperatorIdentifier identifier) {
222187
return this;
223188
}
224189

225-
@Deprecated
226-
public <T> SavepointWriter withOperator(
227-
String uid, StateBootstrapTransformation<T> transformation) {
228-
return withOperator(OperatorIdentifier.forUid(uid), transformation);
229-
}
230-
231190
/**
232191
* Adds a new operator to the savepoint.
233192
*

0 commit comments

Comments
 (0)