Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
7a5e3e40
F
flink
项目概览
doujutun3207
/
flink
与 Fork 源项目一致
从无法访问的项目Fork
通知
24
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flink
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7a5e3e40
编写于
10月 13, 2014
作者:
S
Stephan Ewen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix various deprecation warnings in tests
上级
624fe959
变更
37
隐藏空白更改
内联
并排
Showing
37 changed file
with
39 addition
and
39 deletion
+39
-39
flink-compiler/src/main/java/org/apache/flink/compiler/postpass/JavaApiPostPass.java
...a/org/apache/flink/compiler/postpass/JavaApiPostPass.java
+0
-3
flink-compiler/src/test/java/org/apache/flink/compiler/AdditionalOperatorsTest.java
...va/org/apache/flink/compiler/AdditionalOperatorsTest.java
+1
-1
flink-compiler/src/test/java/org/apache/flink/compiler/BranchingPlansCompilerTest.java
...org/apache/flink/compiler/BranchingPlansCompilerTest.java
+2
-2
flink-compiler/src/test/java/org/apache/flink/compiler/CompilerTestBase.java
...test/java/org/apache/flink/compiler/CompilerTestBase.java
+1
-0
flink-compiler/src/test/java/org/apache/flink/compiler/DOPChangeTest.java
...rc/test/java/org/apache/flink/compiler/DOPChangeTest.java
+1
-2
flink-compiler/src/test/java/org/apache/flink/compiler/GroupOrderTest.java
...c/test/java/org/apache/flink/compiler/GroupOrderTest.java
+2
-4
flink-compiler/src/test/java/org/apache/flink/compiler/HardPlansCompilationTest.java
...a/org/apache/flink/compiler/HardPlansCompilationTest.java
+2
-4
flink-compiler/src/test/java/org/apache/flink/compiler/ReduceAllTest.java
...rc/test/java/org/apache/flink/compiler/ReduceAllTest.java
+1
-2
flink-compiler/src/test/java/org/apache/flink/compiler/UnionPropertyPropagationTest.java
...g/apache/flink/compiler/UnionPropertyPropagationTest.java
+2
-2
flink-compiler/src/test/java/org/apache/flink/compiler/WorksetIterationsRecordApiCompilerTest.java
...link/compiler/WorksetIterationsRecordApiCompilerTest.java
+1
-0
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyCoGroupStub.java
...java/org/apache/flink/compiler/util/DummyCoGroupStub.java
+1
-0
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyCrossStub.java
...t/java/org/apache/flink/compiler/util/DummyCrossStub.java
+1
-0
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyInputFormat.java
...java/org/apache/flink/compiler/util/DummyInputFormat.java
+0
-1
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyMatchStub.java
...t/java/org/apache/flink/compiler/util/DummyMatchStub.java
+1
-1
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyNonPreservingMatchStub.java
...ache/flink/compiler/util/DummyNonPreservingMatchStub.java
+1
-2
flink-compiler/src/test/java/org/apache/flink/compiler/util/IdentityMap.java
...test/java/org/apache/flink/compiler/util/IdentityMap.java
+1
-1
flink-compiler/src/test/java/org/apache/flink/compiler/util/IdentityReduce.java
...t/java/org/apache/flink/compiler/util/IdentityReduce.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/accumulators/AccumulatorIterativeITCase.java
...e/flink/test/accumulators/AccumulatorIterativeITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/broadcastvars/BroadcastBranchingITCase.java
...he/flink/test/broadcastvars/BroadcastBranchingITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/broadcastvars/BroadcastVarsNepheleITCase.java
.../flink/test/broadcastvars/BroadcastVarsNepheleITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/cancelling/MapCancelingITCase.java
.../org/apache/flink/test/cancelling/MapCancelingITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/cancelling/MatchJoinCancelingITCase.java
...pache/flink/test/cancelling/MatchJoinCancelingITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/compiler/examples/KMeansSingleStepTest.java
...he/flink/test/compiler/examples/KMeansSingleStepTest.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/compiler/examples/RelationalQueryCompilerTest.java
...k/test/compiler/examples/RelationalQueryCompilerTest.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/compiler/examples/WordCountCompilerTest.java
...e/flink/test/compiler/examples/WordCountCompilerTest.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/ConnectedComponentsTest.java
...ink/test/compiler/iterations/ConnectedComponentsTest.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/IterativeKMeansTest.java
...e/flink/test/compiler/iterations/IterativeKMeansTest.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/distributedCache/DistributedCacheTest.java
...che/flink/test/distributedCache/DistributedCacheTest.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/exampleJavaPrograms/WordCountNestedPOJOITCase.java
...k/test/exampleJavaPrograms/WordCountNestedPOJOITCase.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/failingPrograms/TaskFailureITCase.java
.../apache/flink/test/failingPrograms/TaskFailureITCase.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/iterative/CoGroupConnectedComponentsITCase.java
...link/test/iterative/CoGroupConnectedComponentsITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/iterative/ConnectedComponentsWithDeferredUpdateITCase.java
...terative/ConnectedComponentsWithDeferredUpdateITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/iterative/ConnectedComponentsWithSolutionSetFirstITCase.java
...rative/ConnectedComponentsWithSolutionSetFirstITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationTerminationWithTerminationTail.java
...st/iterative/IterationTerminationWithTerminationTail.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationTerminationWithTwoTails.java
...link/test/iterative/IterationTerminationWithTwoTails.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithAllReducerITCase.java
...e/flink/test/iterative/IterationWithAllReducerITCase.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithChainingITCase.java
...che/flink/test/iterative/IterationWithChainingITCase.java
+1
-0
未找到文件。
flink-compiler/src/main/java/org/apache/flink/compiler/postpass/JavaApiPostPass.java
浏览文件 @
7a5e3e40
...
@@ -275,7 +275,6 @@ public class JavaApiPostPass implements OptimizerPostPass {
...
@@ -275,7 +275,6 @@ public class JavaApiPostPass implements OptimizerPostPass {
throw
new
RuntimeException
(
"Wrong operator type found in post pass."
);
throw
new
RuntimeException
(
"Wrong operator type found in post pass."
);
}
}
}
}
private
static
<
T
>
TypeSerializerFactory
<?>
createSerializer
(
TypeInformation
<
T
>
typeInfo
)
{
private
static
<
T
>
TypeSerializerFactory
<?>
createSerializer
(
TypeInformation
<
T
>
typeInfo
)
{
TypeSerializer
<
T
>
serializer
=
typeInfo
.
createSerializer
();
TypeSerializer
<
T
>
serializer
=
typeInfo
.
createSerializer
();
...
@@ -287,8 +286,6 @@ public class JavaApiPostPass implements OptimizerPostPass {
...
@@ -287,8 +286,6 @@ public class JavaApiPostPass implements OptimizerPostPass {
}
}
}
}
@SuppressWarnings
(
"unchecked"
)
private
static
<
T
>
TypeComparatorFactory
<?>
createComparator
(
TypeInformation
<
T
>
typeInfo
,
FieldList
keys
,
boolean
[]
sortOrder
)
{
private
static
<
T
>
TypeComparatorFactory
<?>
createComparator
(
TypeInformation
<
T
>
typeInfo
,
FieldList
keys
,
boolean
[]
sortOrder
)
{
TypeComparator
<
T
>
comparator
;
TypeComparator
<
T
>
comparator
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/AdditionalOperatorsTest.java
浏览文件 @
7a5e3e40
...
@@ -43,7 +43,7 @@ import org.junit.Test;
...
@@ -43,7 +43,7 @@ import org.junit.Test;
* Tests that validate optimizer choices when using operators that are requesting certain specific execution
* Tests that validate optimizer choices when using operators that are requesting certain specific execution
* strategies.
* strategies.
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
AdditionalOperatorsTest
extends
CompilerTestBase
{
public
class
AdditionalOperatorsTest
extends
CompilerTestBase
{
@Test
@Test
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/BranchingPlansCompilerTest.java
浏览文件 @
7a5e3e40
...
@@ -58,7 +58,7 @@ import org.apache.flink.compiler.util.IdentityReduce;
...
@@ -58,7 +58,7 @@ import org.apache.flink.compiler.util.IdentityReduce;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.LongValue
;
import
org.apache.flink.types.LongValue
;
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
BranchingPlansCompilerTest
extends
CompilerTestBase
{
public
class
BranchingPlansCompilerTest
extends
CompilerTestBase
{
...
@@ -358,7 +358,7 @@ public class BranchingPlansCompilerTest extends CompilerTestBase {
...
@@ -358,7 +358,7 @@ public class BranchingPlansCompilerTest extends CompilerTestBase {
}
}
}
}
@SuppressWarnings
(
{
"unchecked"
,
"deprecation"
}
)
@SuppressWarnings
(
"unchecked"
)
@Test
@Test
public
void
testBranchEachContractType
()
{
public
void
testBranchEachContractType
()
{
try
{
try
{
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/CompilerTestBase.java
浏览文件 @
7a5e3e40
...
@@ -44,6 +44,7 @@ import org.junit.Before;
...
@@ -44,6 +44,7 @@ import org.junit.Before;
/**
/**
*
*
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
abstract
class
CompilerTestBase
implements
java
.
io
.
Serializable
{
public
abstract
class
CompilerTestBase
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/DOPChangeTest.java
浏览文件 @
7a5e3e40
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
package
org.apache.flink.compiler
;
package
org.apache.flink.compiler
;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.java.record.operators.FileDataSink
;
import
org.apache.flink.api.java.record.operators.FileDataSink
;
import
org.apache.flink.api.java.record.operators.FileDataSource
;
import
org.apache.flink.api.java.record.operators.FileDataSource
;
...
@@ -52,7 +51,7 @@ import org.junit.Test;
...
@@ -52,7 +51,7 @@ import org.junit.Test;
* parallelism between tasks is increased or decreased.
* parallelism between tasks is increased or decreased.
* </ul>
* </ul>
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
DOPChangeTest
extends
CompilerTestBase
{
public
class
DOPChangeTest
extends
CompilerTestBase
{
/**
/**
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/GroupOrderTest.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.compiler
;
package
org.apache.flink.compiler
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
junit
.
Assert
.
fail
;
...
@@ -48,13 +47,12 @@ import org.apache.flink.types.StringValue;
...
@@ -48,13 +47,12 @@ import org.apache.flink.types.StringValue;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
/**
/**
* This test case has been created to validate that correct strategies are used if orders within groups are
* This test case has been created to validate that correct strategies are used if orders within groups are
* requested.
* requested.
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
GroupOrderTest
extends
CompilerTestBase
{
public
class
GroupOrderTest
extends
CompilerTestBase
{
@Test
@Test
public
void
testReduceWithGroupOrder
()
{
public
void
testReduceWithGroupOrder
()
{
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/HardPlansCompilationTest.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.compiler
;
package
org.apache.flink.compiler
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
...
@@ -41,9 +40,8 @@ import org.junit.Test;
...
@@ -41,9 +40,8 @@ import org.junit.Test;
* <li> Ticket 158
* <li> Ticket 158
* </ul>
* </ul>
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
({
"serial"
,
"deprecation"
})
public
class
HardPlansCompilationTest
extends
CompilerTestBase
public
class
HardPlansCompilationTest
extends
CompilerTestBase
{
{
/**
/**
* Source -> Map -> Reduce -> Cross -> Reduce -> Cross -> Reduce ->
* Source -> Map -> Reduce -> Cross -> Reduce -> Cross -> Reduce ->
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/ReduceAllTest.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.compiler
;
package
org.apache.flink.compiler
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
junit
.
Assert
.
fail
;
...
@@ -37,7 +36,7 @@ import org.junit.Test;
...
@@ -37,7 +36,7 @@ import org.junit.Test;
* This test case has been created to validate a bug that occurred when
* This test case has been created to validate a bug that occurred when
* the ReduceOperator was used without a grouping key.
* the ReduceOperator was used without a grouping key.
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
ReduceAllTest
extends
CompilerTestBase
{
public
class
ReduceAllTest
extends
CompilerTestBase
{
@Test
@Test
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/UnionPropertyPropagationTest.java
浏览文件 @
7a5e3e40
...
@@ -49,10 +49,10 @@ import org.apache.flink.compiler.util.DummyOutputFormat;
...
@@ -49,10 +49,10 @@ import org.apache.flink.compiler.util.DummyOutputFormat;
import
org.apache.flink.compiler.util.IdentityReduce
;
import
org.apache.flink.compiler.util.IdentityReduce
;
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
UnionPropertyPropagationTest
extends
CompilerTestBase
{
public
class
UnionPropertyPropagationTest
extends
CompilerTestBase
{
@SuppressWarnings
(
{
"deprecation"
,
"unchecked"
}
)
@SuppressWarnings
(
"unchecked"
)
@Test
@Test
public
void
testUnionPropertyOldApiPropagation
()
{
public
void
testUnionPropertyOldApiPropagation
()
{
// construct the plan
// construct the plan
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/WorksetIterationsRecordApiCompilerTest.java
浏览文件 @
7a5e3e40
...
@@ -51,6 +51,7 @@ import org.junit.Test;
...
@@ -51,6 +51,7 @@ import org.junit.Test;
* Tests that validate optimizer choices when using operators that are requesting certain specific execution
* Tests that validate optimizer choices when using operators that are requesting certain specific execution
* strategies.
* strategies.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
WorksetIterationsRecordApiCompilerTest
extends
CompilerTestBase
{
public
class
WorksetIterationsRecordApiCompilerTest
extends
CompilerTestBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyCoGroupStub.java
浏览文件 @
7a5e3e40
...
@@ -25,6 +25,7 @@ import org.apache.flink.api.java.record.functions.CoGroupFunction;
...
@@ -25,6 +25,7 @@ import org.apache.flink.api.java.record.functions.CoGroupFunction;
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
public
class
DummyCoGroupStub
extends
CoGroupFunction
implements
Serializable
{
public
class
DummyCoGroupStub
extends
CoGroupFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyCrossStub.java
浏览文件 @
7a5e3e40
...
@@ -21,6 +21,7 @@ package org.apache.flink.compiler.util;
...
@@ -21,6 +21,7 @@ package org.apache.flink.compiler.util;
import
org.apache.flink.api.java.record.functions.CrossFunction
;
import
org.apache.flink.api.java.record.functions.CrossFunction
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
@SuppressWarnings
(
"deprecation"
)
public
class
DummyCrossStub
extends
CrossFunction
{
public
class
DummyCrossStub
extends
CrossFunction
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyInputFormat.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.compiler.util
;
package
org.apache.flink.compiler.util
;
import
org.apache.flink.api.common.io.statistics.BaseStatistics
;
import
org.apache.flink.api.common.io.statistics.BaseStatistics
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyMatchStub.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.compiler.util
;
package
org.apache.flink.compiler.util
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -26,6 +25,7 @@ import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFie
...
@@ -26,6 +25,7 @@ import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFie
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
@ConstantFieldsFirstExcept
({})
@ConstantFieldsFirstExcept
({})
public
class
DummyMatchStub
extends
JoinFunction
implements
Serializable
{
public
class
DummyMatchStub
extends
JoinFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/util/DummyNonPreservingMatchStub.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.compiler.util
;
package
org.apache.flink.compiler.util
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -25,7 +24,7 @@ import org.apache.flink.api.java.record.functions.JoinFunction;
...
@@ -25,7 +24,7 @@ import org.apache.flink.api.java.record.functions.JoinFunction;
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
public
class
DummyNonPreservingMatchStub
extends
JoinFunction
implements
Serializable
{
public
class
DummyNonPreservingMatchStub
extends
JoinFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/util/IdentityMap.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.compiler.util
;
package
org.apache.flink.compiler.util
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -26,6 +25,7 @@ import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFie
...
@@ -26,6 +25,7 @@ import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFie
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
@ConstantFieldsExcept
({})
@ConstantFieldsExcept
({})
public
final
class
IdentityMap
extends
MapFunction
implements
Serializable
{
public
final
class
IdentityMap
extends
MapFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/util/IdentityReduce.java
浏览文件 @
7a5e3e40
...
@@ -26,6 +26,7 @@ import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFie
...
@@ -26,6 +26,7 @@ import org.apache.flink.api.java.record.functions.FunctionAnnotation.ConstantFie
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
@ConstantFieldsExcept
({})
@ConstantFieldsExcept
({})
public
final
class
IdentityReduce
extends
ReduceFunction
implements
Serializable
{
public
final
class
IdentityReduce
extends
ReduceFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/accumulators/AccumulatorIterativeITCase.java
浏览文件 @
7a5e3e40
...
@@ -45,6 +45,7 @@ import org.junit.runners.Parameterized.Parameters;
...
@@ -45,6 +45,7 @@ import org.junit.runners.Parameterized.Parameters;
/**
/**
* To be finished !!! Didn't test with iterations yet;-(
* To be finished !!! Didn't test with iterations yet;-(
*/
*/
@SuppressWarnings
(
"deprecation"
)
@RunWith
(
Parameterized
.
class
)
@RunWith
(
Parameterized
.
class
)
public
class
AccumulatorIterativeITCase
extends
RecordAPITestBase
{
public
class
AccumulatorIterativeITCase
extends
RecordAPITestBase
{
...
...
flink-tests/src/test/java/org/apache/flink/test/broadcastvars/BroadcastBranchingITCase.java
浏览文件 @
7a5e3e40
...
@@ -36,6 +36,7 @@ import org.apache.flink.types.Record;
...
@@ -36,6 +36,7 @@ import org.apache.flink.types.Record;
import
org.apache.flink.types.StringValue
;
import
org.apache.flink.types.StringValue
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
public
class
BroadcastBranchingITCase
extends
RecordAPITestBase
{
public
class
BroadcastBranchingITCase
extends
RecordAPITestBase
{
private
static
final
String
SC1_ID_ABC
=
"1 61 6 29\n2 7 13 10\n3 8 13 27\n"
;
private
static
final
String
SC1_ID_ABC
=
"1 61 6 29\n2 7 13 10\n3 8 13 27\n"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/broadcastvars/BroadcastVarsNepheleITCase.java
浏览文件 @
7a5e3e40
...
@@ -53,6 +53,7 @@ import org.apache.flink.types.Record;
...
@@ -53,6 +53,7 @@ import org.apache.flink.types.Record;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
import
org.junit.Assert
;
import
org.junit.Assert
;
@SuppressWarnings
(
"deprecation"
)
public
class
BroadcastVarsNepheleITCase
extends
RecordAPITestBase
{
public
class
BroadcastVarsNepheleITCase
extends
RecordAPITestBase
{
private
static
final
long
SEED_POINTS
=
0xBADC0FFEEBEEF
L
;
private
static
final
long
SEED_POINTS
=
0xBADC0FFEEBEEF
L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/cancelling/MapCancelingITCase.java
浏览文件 @
7a5e3e40
...
@@ -31,6 +31,7 @@ import org.apache.flink.test.recordJobs.util.InfiniteIntegerInputFormat;
...
@@ -31,6 +31,7 @@ import org.apache.flink.test.recordJobs.util.InfiniteIntegerInputFormat;
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
public
class
MapCancelingITCase
extends
CancellingTestBase
{
public
class
MapCancelingITCase
extends
CancellingTestBase
{
private
static
final
int
DOP
=
4
;
private
static
final
int
DOP
=
4
;
...
...
flink-tests/src/test/java/org/apache/flink/test/cancelling/MatchJoinCancelingITCase.java
浏览文件 @
7a5e3e40
...
@@ -35,6 +35,7 @@ import org.apache.flink.types.IntValue;
...
@@ -35,6 +35,7 @@ import org.apache.flink.types.IntValue;
import
org.apache.flink.types.Record
;
import
org.apache.flink.types.Record
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
public
class
MatchJoinCancelingITCase
extends
CancellingTestBase
{
public
class
MatchJoinCancelingITCase
extends
CancellingTestBase
{
private
static
final
int
DOP
=
4
;
private
static
final
int
DOP
=
4
;
...
...
flink-tests/src/test/java/org/apache/flink/test/compiler/examples/KMeansSingleStepTest.java
浏览文件 @
7a5e3e40
...
@@ -37,7 +37,7 @@ import org.apache.flink.test.recordJobs.kmeans.KMeansSingleStep;
...
@@ -37,7 +37,7 @@ import org.apache.flink.test.recordJobs.kmeans.KMeansSingleStep;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
@SuppressWarnings
(
"deprecation"
)
public
class
KMeansSingleStepTest
extends
CompilerTestBase
{
public
class
KMeansSingleStepTest
extends
CompilerTestBase
{
private
static
final
String
DATAPOINTS
=
"Data Points"
;
private
static
final
String
DATAPOINTS
=
"Data Points"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/compiler/examples/RelationalQueryCompilerTest.java
浏览文件 @
7a5e3e40
...
@@ -41,6 +41,7 @@ import org.junit.Test;
...
@@ -41,6 +41,7 @@ import org.junit.Test;
/**
/**
* Tests TPCH Q3 (simplified) under various input conditions.
* Tests TPCH Q3 (simplified) under various input conditions.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
RelationalQueryCompilerTest
extends
CompilerTestBase
{
public
class
RelationalQueryCompilerTest
extends
CompilerTestBase
{
private
static
final
String
ORDERS
=
"Orders"
;
private
static
final
String
ORDERS
=
"Orders"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/compiler/examples/WordCountCompilerTest.java
浏览文件 @
7a5e3e40
...
@@ -47,9 +47,7 @@ import org.apache.flink.types.StringValue;
...
@@ -47,9 +47,7 @@ import org.apache.flink.types.StringValue;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
/**
@SuppressWarnings
(
"deprecation"
)
*
*/
public
class
WordCountCompilerTest
extends
CompilerTestBase
{
public
class
WordCountCompilerTest
extends
CompilerTestBase
{
/**
/**
...
...
flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/ConnectedComponentsTest.java
浏览文件 @
7a5e3e40
...
@@ -55,9 +55,7 @@ import org.apache.flink.util.Collector;
...
@@ -55,9 +55,7 @@ import org.apache.flink.util.Collector;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
/**
@SuppressWarnings
(
"deprecation"
)
*
*/
public
class
ConnectedComponentsTest
extends
CompilerTestBase
{
public
class
ConnectedComponentsTest
extends
CompilerTestBase
{
private
static
final
String
VERTEX_SOURCE
=
"Vertices"
;
private
static
final
String
VERTEX_SOURCE
=
"Vertices"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/IterativeKMeansTest.java
浏览文件 @
7a5e3e40
...
@@ -42,7 +42,7 @@ import org.apache.flink.test.recordJobs.kmeans.KMeansBroadcast;
...
@@ -42,7 +42,7 @@ import org.apache.flink.test.recordJobs.kmeans.KMeansBroadcast;
import
org.junit.Assert
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.Test
;
@SuppressWarnings
(
"deprecation"
)
public
class
IterativeKMeansTest
extends
CompilerTestBase
{
public
class
IterativeKMeansTest
extends
CompilerTestBase
{
private
static
final
String
DATAPOINTS
=
"Data Points"
;
private
static
final
String
DATAPOINTS
=
"Data Points"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/distributedCache/DistributedCacheTest.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.distributedCache
;
package
org.apache.flink.test.distributedCache
;
import
java.io.BufferedReader
;
import
java.io.BufferedReader
;
...
@@ -42,10 +41,10 @@ import org.apache.flink.types.Record;
...
@@ -42,10 +41,10 @@ import org.apache.flink.types.Record;
import
org.apache.flink.types.StringValue
;
import
org.apache.flink.types.StringValue
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
/**
/**
* Test the distributed cache via using the cache file to do a selection on the input
* Test the distributed cache via using the cache file to do a selection on the input
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
DistributedCacheTest
extends
RecordAPITestBase
{
public
class
DistributedCacheTest
extends
RecordAPITestBase
{
public
static
final
String
cacheData
=
"machen\n"
+
"zeit\n"
+
"heerscharen\n"
+
"keiner\n"
+
"meine\n"
public
static
final
String
cacheData
=
"machen\n"
+
"zeit\n"
+
"heerscharen\n"
+
"keiner\n"
+
"meine\n"
...
...
flink-tests/src/test/java/org/apache/flink/test/exampleJavaPrograms/WordCountNestedPOJOITCase.java
浏览文件 @
7a5e3e40
...
@@ -30,7 +30,7 @@ import org.apache.flink.util.Collector;
...
@@ -30,7 +30,7 @@ import org.apache.flink.util.Collector;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
@SuppressWarnings
(
"serial"
)
public
class
WordCountNestedPOJOITCase
extends
JavaProgramTestBase
implements
Serializable
{
public
class
WordCountNestedPOJOITCase
extends
JavaProgramTestBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
protected
String
textPath
;
protected
String
textPath
;
...
...
flink-tests/src/test/java/org/apache/flink/test/failingPrograms/TaskFailureITCase.java
浏览文件 @
7a5e3e40
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.failingPrograms
;
package
org.apache.flink.test.failingPrograms
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
...
@@ -40,6 +39,7 @@ import org.apache.flink.util.Collector;
...
@@ -40,6 +39,7 @@ import org.apache.flink.util.Collector;
/**
/**
* Tests whether the system recovers from a runtime exception from the user code.
* Tests whether the system recovers from a runtime exception from the user code.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
TaskFailureITCase
extends
FailingTestBase
{
public
class
TaskFailureITCase
extends
FailingTestBase
{
private
static
final
int
DOP
=
4
;
private
static
final
int
DOP
=
4
;
...
...
flink-tests/src/test/java/org/apache/flink/test/iterative/CoGroupConnectedComponentsITCase.java
浏览文件 @
7a5e3e40
...
@@ -43,6 +43,7 @@ import org.apache.flink.types.Record;
...
@@ -43,6 +43,7 @@ import org.apache.flink.types.Record;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
public
class
CoGroupConnectedComponentsITCase
extends
RecordAPITestBase
{
public
class
CoGroupConnectedComponentsITCase
extends
RecordAPITestBase
{
private
static
final
long
SEED
=
0xBADC0FFEEBEEF
L
;
private
static
final
long
SEED
=
0xBADC0FFEEBEEF
L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/iterative/ConnectedComponentsWithDeferredUpdateITCase.java
浏览文件 @
7a5e3e40
...
@@ -47,6 +47,7 @@ import org.junit.runner.RunWith;
...
@@ -47,6 +47,7 @@ import org.junit.runner.RunWith;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameters
;
import
org.junit.runners.Parameterized.Parameters
;
@SuppressWarnings
(
"deprecation"
)
@RunWith
(
Parameterized
.
class
)
@RunWith
(
Parameterized
.
class
)
public
class
ConnectedComponentsWithDeferredUpdateITCase
extends
RecordAPITestBase
{
public
class
ConnectedComponentsWithDeferredUpdateITCase
extends
RecordAPITestBase
{
...
...
flink-tests/src/test/java/org/apache/flink/test/iterative/ConnectedComponentsWithSolutionSetFirstITCase.java
浏览文件 @
7a5e3e40
...
@@ -45,6 +45,7 @@ import org.apache.flink.util.Collector;
...
@@ -45,6 +45,7 @@ import org.apache.flink.util.Collector;
/**
/**
* Tests a bug that prevented that the solution set can be on both sides of the match/cogroup function.
* Tests a bug that prevented that the solution set can be on both sides of the match/cogroup function.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
ConnectedComponentsWithSolutionSetFirstITCase
extends
RecordAPITestBase
{
public
class
ConnectedComponentsWithSolutionSetFirstITCase
extends
RecordAPITestBase
{
private
static
final
long
SEED
=
0xBADC0FFEEBEEF
L
;
private
static
final
long
SEED
=
0xBADC0FFEEBEEF
L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationTerminationWithTerminationTail.java
浏览文件 @
7a5e3e40
...
@@ -37,6 +37,7 @@ import org.apache.flink.types.StringValue;
...
@@ -37,6 +37,7 @@ import org.apache.flink.types.StringValue;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
import
org.junit.Assert
;
import
org.junit.Assert
;
@SuppressWarnings
(
"deprecation"
)
public
class
IterationTerminationWithTerminationTail
extends
RecordAPITestBase
{
public
class
IterationTerminationWithTerminationTail
extends
RecordAPITestBase
{
private
static
final
String
INPUT
=
"1\n"
+
"2\n"
+
"3\n"
+
"4\n"
+
"5\n"
;
private
static
final
String
INPUT
=
"1\n"
+
"2\n"
+
"3\n"
+
"4\n"
+
"5\n"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationTerminationWithTwoTails.java
浏览文件 @
7a5e3e40
...
@@ -37,7 +37,7 @@ import org.apache.flink.types.StringValue;
...
@@ -37,7 +37,7 @@ import org.apache.flink.types.StringValue;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
import
org.junit.Assert
;
import
org.junit.Assert
;
@SuppressWarnings
(
"deprecation"
)
public
class
IterationTerminationWithTwoTails
extends
RecordAPITestBase
{
public
class
IterationTerminationWithTwoTails
extends
RecordAPITestBase
{
private
static
final
String
INPUT
=
"1\n"
+
"2\n"
+
"3\n"
+
"4\n"
+
"5\n"
;
private
static
final
String
INPUT
=
"1\n"
+
"2\n"
+
"3\n"
+
"4\n"
+
"5\n"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithAllReducerITCase.java
浏览文件 @
7a5e3e40
...
@@ -35,7 +35,7 @@ import org.apache.flink.types.StringValue;
...
@@ -35,7 +35,7 @@ import org.apache.flink.types.StringValue;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
import
org.junit.Assert
;
import
org.junit.Assert
;
@SuppressWarnings
(
"deprecation"
)
public
class
IterationWithAllReducerITCase
extends
RecordAPITestBase
{
public
class
IterationWithAllReducerITCase
extends
RecordAPITestBase
{
private
static
final
String
INPUT
=
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
;
private
static
final
String
INPUT
=
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
+
"1\n"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithChainingITCase.java
浏览文件 @
7a5e3e40
...
@@ -41,6 +41,7 @@ import org.junit.runner.RunWith;
...
@@ -41,6 +41,7 @@ import org.junit.runner.RunWith;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameters
;
import
org.junit.runners.Parameterized.Parameters
;
@SuppressWarnings
(
"deprecation"
)
@RunWith
(
Parameterized
.
class
)
@RunWith
(
Parameterized
.
class
)
public
class
IterationWithChainingITCase
extends
RecordAPITestBase
{
public
class
IterationWithChainingITCase
extends
RecordAPITestBase
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录