Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
de7f478f
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,发现更多精彩内容 >>
提交
de7f478f
编写于
12月 14, 2014
作者:
S
Stephan Ewen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[misc] Fix/suppress various compiler warnings.
上级
9e403667
变更
60
显示空白变更内容
内联
并排
Showing
60 changed file
with
65 addition
and
92 deletion
+65
-92
flink-addons/flink-hbase/src/main/java/org/apache/flink/addons/hbase/TableInputFormat.java
.../java/org/apache/flink/addons/hbase/TableInputFormat.java
+1
-1
flink-addons/flink-spargel/src/main/java/org/apache/flink/spargel/java/record/SpargelIteration.java
...rg/apache/flink/spargel/java/record/SpargelIteration.java
+1
-0
flink-compiler/src/test/java/org/apache/flink/compiler/custompartition/CustomPartitioningGlobalOptimizationTest.java
...ompartition/CustomPartitioningGlobalOptimizationTest.java
+1
-6
flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/HashPartition.java
...rg/apache/flink/runtime/operators/hash/HashPartition.java
+2
-3
flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/InMemoryPartition.java
...pache/flink/runtime/operators/hash/InMemoryPartition.java
+1
-1
flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java
...apache/flink/runtime/operators/hash/MutableHashTable.java
+0
-3
flink-scala/src/main/java/org/apache/flink/api/scala/operators/ScalaCsvInputFormat.java
...apache/flink/api/scala/operators/ScalaCsvInputFormat.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/GroupReduceITCase.java
...apache/flink/test/javaApiOperators/GroupReduceITCase.java
+2
-0
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/ReduceITCase.java
.../org/apache/flink/test/javaApiOperators/ReduceITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/util/CollectionDataSets.java
.../flink/test/javaApiOperators/util/CollectionDataSets.java
+4
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/CollectionSourceTest.java
...pache/flink/test/recordJobTests/CollectionSourceTest.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/CollectionValidationTest.java
...e/flink/test/recordJobTests/CollectionValidationTest.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/GlobalSortingITCase.java
...apache/flink/test/recordJobTests/GlobalSortingITCase.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/GlobalSortingMixedOrderITCase.java
...nk/test/recordJobTests/GlobalSortingMixedOrderITCase.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/GroupOrderReduceITCase.java
...che/flink/test/recordJobTests/GroupOrderReduceITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/WordCountUnionReduceITCase.java
...flink/test/recordJobTests/WordCountUnionReduceITCase.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/ComputeEdgeDegrees.java
...pache/flink/test/recordJobs/graph/ComputeEdgeDegrees.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/ConnectedComponentsWithCoGroup.java
...test/recordJobs/graph/ConnectedComponentsWithCoGroup.java
+1
-4
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/DanglingPageRank.java
.../apache/flink/test/recordJobs/graph/DanglingPageRank.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/DeltaPageRankWithInitialDeltas.java
...test/recordJobs/graph/DeltaPageRankWithInitialDeltas.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/EnumTrianglesOnEdgesWithDegrees.java
...est/recordJobs/graph/EnumTrianglesOnEdgesWithDegrees.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/EnumTrianglesRdfFoaf.java
...che/flink/test/recordJobs/graph/EnumTrianglesRdfFoaf.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/EnumTrianglesWithDegrees.java
...flink/test/recordJobs/graph/EnumTrianglesWithDegrees.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/PairwiseSP.java
...va/org/apache/flink/test/recordJobs/graph/PairwiseSP.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/SimplePageRank.java
...rg/apache/flink/test/recordJobs/graph/SimplePageRank.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/WorksetConnectedComponents.java
...ink/test/recordJobs/graph/WorksetConnectedComponents.java
+1
-4
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/pageRankUtil/DotProductCoGroup.java
...test/recordJobs/graph/pageRankUtil/DotProductCoGroup.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/pageRankUtil/DotProductMatch.java
...k/test/recordJobs/graph/pageRankUtil/DotProductMatch.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/KMeansCross.java
.../org/apache/flink/test/recordJobs/kmeans/KMeansCross.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/KMeansSingleStep.java
...apache/flink/test/recordJobs/kmeans/KMeansSingleStep.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/ComputeDistance.java
...he/flink/test/recordJobs/kmeans/udfs/ComputeDistance.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/ComputeDistanceParameterized.java
.../recordJobs/kmeans/udfs/ComputeDistanceParameterized.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/FindNearestCenter.java
.../flink/test/recordJobs/kmeans/udfs/FindNearestCenter.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/RecomputeClusterCenter.java
...k/test/recordJobs/kmeans/udfs/RecomputeClusterCenter.java
+1
-0
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/MergeOnlyJoin.java
...pache/flink/test/recordJobs/relational/MergeOnlyJoin.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery1.java
...g/apache/flink/test/recordJobs/relational/TPCHQuery1.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery10.java
.../apache/flink/test/recordJobs/relational/TPCHQuery10.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery3.java
...g/apache/flink/test/recordJobs/relational/TPCHQuery3.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery3Unioned.java
...e/flink/test/recordJobs/relational/TPCHQuery3Unioned.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery4.java
...g/apache/flink/test/recordJobs/relational/TPCHQuery4.java
+2
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery9.java
...g/apache/flink/test/recordJobs/relational/TPCHQuery9.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQueryAsterix.java
...he/flink/test/recordJobs/relational/TPCHQueryAsterix.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/WebLogAnalysis.java
...ache/flink/test/recordJobs/relational/WebLogAnalysis.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query1Util/GroupByReturnFlag.java
...t/recordJobs/relational/query1Util/GroupByReturnFlag.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query1Util/LineItemFilter.java
...test/recordJobs/relational/query1Util/LineItemFilter.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/AmountAggregate.java
...est/recordJobs/relational/query9Util/AmountAggregate.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/FilteredPartsJoin.java
...t/recordJobs/relational/query9Util/FilteredPartsJoin.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/LineItemMap.java
...nk/test/recordJobs/relational/query9Util/LineItemMap.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/OrderMap.java
...flink/test/recordJobs/relational/query9Util/OrderMap.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/OrderedPartsJoin.java
...st/recordJobs/relational/query9Util/OrderedPartsJoin.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartFilter.java
...ink/test/recordJobs/relational/query9Util/PartFilter.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartJoin.java
...flink/test/recordJobs/relational/query9Util/PartJoin.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartListJoin.java
...k/test/recordJobs/relational/query9Util/PartListJoin.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartsuppMap.java
...nk/test/recordJobs/relational/query9Util/PartsuppMap.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/SupplierMap.java
...nk/test/recordJobs/relational/query9Util/SupplierMap.java
+1
-2
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/SuppliersJoin.java
.../test/recordJobs/relational/query9Util/SuppliersJoin.java
+1
-3
flink-tests/src/test/java/org/apache/flink/test/recordJobs/sort/ReduceGroupSort.java
...rg/apache/flink/test/recordJobs/sort/ReduceGroupSort.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/sort/TeraSort.java
.../java/org/apache/flink/test/recordJobs/sort/TeraSort.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/wordcount/WordCount.java
...org/apache/flink/test/recordJobs/wordcount/WordCount.java
+1
-1
flink-tests/src/test/java/org/apache/flink/test/recordJobs/wordcount/WordCountAccumulators.java
...link/test/recordJobs/wordcount/WordCountAccumulators.java
+1
-1
未找到文件。
flink-addons/flink-hbase/src/main/java/org/apache/flink/addons/hbase/TableInputFormat.java
浏览文件 @
de7f478f
...
@@ -71,7 +71,7 @@ public abstract class TableInputFormat<T extends Tuple> implements InputFormat<T
...
@@ -71,7 +71,7 @@ public abstract class TableInputFormat<T extends Tuple> implements InputFormat<T
* creates a {@link Scan} object and a {@link HTable} connection
* creates a {@link Scan} object and a {@link HTable} connection
*
*
* @param parameters
* @param parameters
* @see
{@link Configuration}
* @see
Configuration
*/
*/
@Override
@Override
public
void
configure
(
Configuration
parameters
)
{
public
void
configure
(
Configuration
parameters
)
{
...
...
flink-addons/flink-spargel/src/main/java/org/apache/flink/spargel/java/record/SpargelIteration.java
浏览文件 @
de7f478f
...
@@ -35,6 +35,7 @@ import org.apache.flink.util.Collector;
...
@@ -35,6 +35,7 @@ import org.apache.flink.util.Collector;
import
org.apache.flink.util.InstantiationUtil
;
import
org.apache.flink.util.InstantiationUtil
;
import
org.apache.flink.util.ReflectionUtil
;
import
org.apache.flink.util.ReflectionUtil
;
@SuppressWarnings
(
"deprecation"
)
public
class
SpargelIteration
{
public
class
SpargelIteration
{
private
static
final
String
DEFAULT_NAME
=
"<unnamed vertex-centric iteration>"
;
private
static
final
String
DEFAULT_NAME
=
"<unnamed vertex-centric iteration>"
;
...
...
flink-compiler/src/test/java/org/apache/flink/compiler/custompartition/CustomPartitioningGlobalOptimizationTest.java
浏览文件 @
de7f478f
...
@@ -21,19 +21,13 @@ package org.apache.flink.compiler.custompartition;
...
@@ -21,19 +21,13 @@ package org.apache.flink.compiler.custompartition;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
junit
.
Assert
.
fail
;
import
org.junit.Test
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.functions.Partitioner
;
import
org.apache.flink.api.common.functions.Partitioner
;
import
org.apache.flink.api.java.DataSet
;
import
org.apache.flink.api.java.DataSet
;
import
org.apache.flink.api.java.ExecutionEnvironment
;
import
org.apache.flink.api.java.ExecutionEnvironment
;
import
org.apache.flink.api.java.operators.JoinOperator
;
import
org.apache.flink.api.java.operators.JoinOperator.ProjectJoin
;
import
org.apache.flink.api.java.tuple.Tuple
;
import
org.apache.flink.api.java.tuple.Tuple1
;
import
org.apache.flink.api.java.tuple.Tuple2
;
import
org.apache.flink.api.java.tuple.Tuple2
;
import
org.apache.flink.api.java.tuple.Tuple3
;
import
org.apache.flink.api.java.tuple.Tuple3
;
import
org.apache.flink.api.java.tuple.Tuple4
;
import
org.apache.flink.compiler.CompilerTestBase
;
import
org.apache.flink.compiler.CompilerTestBase
;
import
org.apache.flink.compiler.plan.DualInputPlanNode
;
import
org.apache.flink.compiler.plan.DualInputPlanNode
;
import
org.apache.flink.compiler.plan.OptimizedPlan
;
import
org.apache.flink.compiler.plan.OptimizedPlan
;
...
@@ -41,6 +35,7 @@ import org.apache.flink.compiler.plan.SingleInputPlanNode;
...
@@ -41,6 +35,7 @@ import org.apache.flink.compiler.plan.SingleInputPlanNode;
import
org.apache.flink.compiler.plan.SinkPlanNode
;
import
org.apache.flink.compiler.plan.SinkPlanNode
;
import
org.apache.flink.compiler.testfunctions.IdentityGroupReducer
;
import
org.apache.flink.compiler.testfunctions.IdentityGroupReducer
;
import
org.apache.flink.runtime.operators.shipping.ShipStrategyType
;
import
org.apache.flink.runtime.operators.shipping.ShipStrategyType
;
import
org.junit.Test
;
@SuppressWarnings
({
"serial"
,
"unchecked"
})
@SuppressWarnings
({
"serial"
,
"unchecked"
})
public
class
CustomPartitioningGlobalOptimizationTest
extends
CompilerTestBase
{
public
class
CustomPartitioningGlobalOptimizationTest
extends
CompilerTestBase
{
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/HashPartition.java
浏览文件 @
de7f478f
...
@@ -44,8 +44,8 @@ import org.apache.flink.util.MutableObjectIterator;
...
@@ -44,8 +44,8 @@ import org.apache.flink.util.MutableObjectIterator;
/**
/**
*
*
* @param
BT
The type of the build side records.
* @param
<BT>
The type of the build side records.
* @param
PT
The type of the probe side records.
* @param
<PT>
The type of the probe side records.
*/
*/
public
class
HashPartition
<
BT
,
PT
>
extends
AbstractPagedInputView
implements
SeekableDataInputView
public
class
HashPartition
<
BT
,
PT
>
extends
AbstractPagedInputView
implements
SeekableDataInputView
{
{
...
@@ -117,7 +117,6 @@ public class HashPartition<BT, PT> extends AbstractPagedInputView implements See
...
@@ -117,7 +117,6 @@ public class HashPartition<BT, PT> extends AbstractPagedInputView implements See
* @param recursionLevel The recursion level - zero for partitions from the initial build, <i>n + 1</i> for
* @param recursionLevel The recursion level - zero for partitions from the initial build, <i>n + 1</i> for
* partitions that are created from spilled partition with recursion level <i>n</i>.
* partitions that are created from spilled partition with recursion level <i>n</i>.
* @param initialBuffer The initial buffer for this partition.
* @param initialBuffer The initial buffer for this partition.
* @param writeBehindBuffers The queue from which to pop buffers for writing, once the partition is spilled.
*/
*/
HashPartition
(
TypeSerializer
<
BT
>
buildSideAccessors
,
TypeSerializer
<
PT
>
probeSideAccessors
,
HashPartition
(
TypeSerializer
<
BT
>
buildSideAccessors
,
TypeSerializer
<
PT
>
probeSideAccessors
,
int
partitionNumber
,
int
recursionLevel
,
MemorySegment
initialBuffer
,
MemorySegmentSource
memSource
,
int
partitionNumber
,
int
recursionLevel
,
MemorySegment
initialBuffer
,
MemorySegmentSource
memSource
,
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/InMemoryPartition.java
浏览文件 @
de7f478f
...
@@ -35,7 +35,7 @@ import org.apache.flink.runtime.memorymanager.ListMemorySegmentSource;
...
@@ -35,7 +35,7 @@ import org.apache.flink.runtime.memorymanager.ListMemorySegmentSource;
/**
/**
* In-memory partition with overflow buckets for {@link CompactingHashTable}
* In-memory partition with overflow buckets for {@link CompactingHashTable}
*
*
* @param
T
record type
* @param
<T>
record type
*/
*/
public
class
InMemoryPartition
<
T
>
{
public
class
InMemoryPartition
<
T
>
{
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java
浏览文件 @
de7f478f
...
@@ -1129,9 +1129,6 @@ public class MutableHashTable<BT, PT> implements MemorySegmentSource {
...
@@ -1129,9 +1129,6 @@ public class MutableHashTable<BT, PT> implements MemorySegmentSource {
* may free new buffers then.
* may free new buffers then.
*
*
* @return The next buffer to be used by the hash-table, or null, if no buffer remains.
* @return The next buffer to be used by the hash-table, or null, if no buffer remains.
* @throws IOException Thrown, if the thread is interrupted while grabbing the next buffer. The I/O
* exception replaces the <tt>InterruptedException</tt> to consolidate the exception
* signatures.
*/
*/
final
MemorySegment
getNextBuffer
()
{
final
MemorySegment
getNextBuffer
()
{
// check if the list directly offers memory
// check if the list directly offers memory
...
...
flink-scala/src/main/java/org/apache/flink/api/scala/operators/ScalaCsvInputFormat.java
浏览文件 @
de7f478f
...
@@ -71,7 +71,7 @@ public class ScalaCsvInputFormat<OUT extends Product> extends GenericCsvInputFor
...
@@ -71,7 +71,7 @@ public class ScalaCsvInputFormat<OUT extends Product> extends GenericCsvInputFor
TupleTypeInfoBase
<
OUT
>
tupleType
=
(
TupleTypeInfoBase
<
OUT
>)
typeInfo
;
TupleTypeInfoBase
<
OUT
>
tupleType
=
(
TupleTypeInfoBase
<
OUT
>)
typeInfo
;
serializer
=
(
TupleSerializerBase
<
OUT
>)
tupleType
.
createSerializer
();
serializer
=
(
TupleSerializerBase
<
OUT
>)
tupleType
.
createSerializer
();
Class
[]
classes
=
new
Class
[
tupleType
.
getArity
()];
Class
<?>
[]
classes
=
new
Class
[
tupleType
.
getArity
()];
for
(
int
i
=
0
;
i
<
tupleType
.
getArity
();
i
++)
{
for
(
int
i
=
0
;
i
<
tupleType
.
getArity
();
i
++)
{
classes
[
i
]
=
tupleType
.
getTypeAt
(
i
).
getTypeClass
();
classes
[
i
]
=
tupleType
.
getTypeAt
(
i
).
getTypeClass
();
}
}
...
...
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/GroupReduceITCase.java
浏览文件 @
de7f478f
...
@@ -94,6 +94,7 @@ public class GroupReduceITCase extends JavaProgramTestBase {
...
@@ -94,6 +94,7 @@ public class GroupReduceITCase extends JavaProgramTestBase {
return
toParameterList
(
tConfigs
);
return
toParameterList
(
tConfigs
);
}
}
@SuppressWarnings
(
"unused"
)
private
static
class
GroupReduceProgs
{
private
static
class
GroupReduceProgs
{
public
static
String
runProgram
(
int
progId
,
String
resultPath
,
boolean
collectionExecution
)
throws
Exception
{
public
static
String
runProgram
(
int
progId
,
String
resultPath
,
boolean
collectionExecution
)
throws
Exception
{
...
@@ -555,6 +556,7 @@ public class GroupReduceITCase extends JavaProgramTestBase {
...
@@ -555,6 +556,7 @@ public class GroupReduceITCase extends JavaProgramTestBase {
DataSet
<
Integer
>
reduceDs
=
ds
.
groupBy
(
"hadoopFan"
,
"theTuple.*"
)
// full tuple selection
DataSet
<
Integer
>
reduceDs
=
ds
.
groupBy
(
"hadoopFan"
,
"theTuple.*"
)
// full tuple selection
.
reduceGroup
(
new
GroupReduceFunction
<
PojoContainingTupleAndWritable
,
Integer
>()
{
.
reduceGroup
(
new
GroupReduceFunction
<
PojoContainingTupleAndWritable
,
Integer
>()
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
@Override
public
void
reduce
(
Iterable
<
PojoContainingTupleAndWritable
>
values
,
public
void
reduce
(
Iterable
<
PojoContainingTupleAndWritable
>
values
,
Collector
<
Integer
>
out
)
Collector
<
Integer
>
out
)
...
...
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/ReduceITCase.java
浏览文件 @
de7f478f
...
@@ -45,6 +45,7 @@ import org.junit.runner.RunWith;
...
@@ -45,6 +45,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
(
"serial"
)
@RunWith
(
Parameterized
.
class
)
@RunWith
(
Parameterized
.
class
)
public
class
ReduceITCase
extends
JavaProgramTestBase
{
public
class
ReduceITCase
extends
JavaProgramTestBase
{
...
...
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/util/CollectionDataSets.java
浏览文件 @
de7f478f
...
@@ -422,8 +422,10 @@ public class CollectionDataSets {
...
@@ -422,8 +422,10 @@ public class CollectionDataSets {
}
}
public
static
class
FromTupleWithCTor
extends
FromTuple
{
public
static
class
FromTupleWithCTor
extends
FromTuple
{
public
FromTupleWithCTor
()
{
}
private
static
final
long
serialVersionUID
=
1L
;
public
FromTupleWithCTor
()
{}
public
FromTupleWithCTor
(
int
special
,
long
tupleField
)
{
public
FromTupleWithCTor
(
int
special
,
long
tupleField
)
{
this
.
special
=
special
;
this
.
special
=
special
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/CollectionSourceTest.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobTests
;
package
org.apache.flink.test.recordJobTests
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -40,6 +39,7 @@ import org.apache.flink.util.Collector;
...
@@ -40,6 +39,7 @@ import org.apache.flink.util.Collector;
/**
/**
* test the collection and iterator data input using join operator
* test the collection and iterator data input using join operator
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
CollectionSourceTest
extends
RecordAPITestBase
{
public
class
CollectionSourceTest
extends
RecordAPITestBase
{
private
static
final
int
DOP
=
4
;
private
static
final
int
DOP
=
4
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/CollectionValidationTest.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobTests
;
package
org.apache.flink.test.recordJobTests
;
import
org.apache.flink.api.java.record.operators.CollectionDataSource
;
import
org.apache.flink.api.java.record.operators.CollectionDataSource
;
...
@@ -29,6 +28,7 @@ import java.util.List;
...
@@ -29,6 +28,7 @@ import java.util.List;
/**
/**
* Test the input field validation of CollectionDataSource
* Test the input field validation of CollectionDataSource
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
CollectionValidationTest
{
public
class
CollectionValidationTest
{
@Test
@Test
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/GlobalSortingITCase.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobTests
;
package
org.apache.flink.test.recordJobTests
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -35,6 +34,7 @@ import org.apache.flink.api.java.record.operators.FileDataSource;
...
@@ -35,6 +34,7 @@ import org.apache.flink.api.java.record.operators.FileDataSource;
import
org.apache.flink.test.util.RecordAPITestBase
;
import
org.apache.flink.test.util.RecordAPITestBase
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.IntValue
;
@SuppressWarnings
(
"deprecation"
)
public
class
GlobalSortingITCase
extends
RecordAPITestBase
{
public
class
GlobalSortingITCase
extends
RecordAPITestBase
{
private
static
final
int
NUM_RECORDS
=
100000
;
private
static
final
int
NUM_RECORDS
=
100000
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/GlobalSortingMixedOrderITCase.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobTests
;
package
org.apache.flink.test.recordJobTests
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -39,6 +38,7 @@ import org.apache.flink.test.util.RecordAPITestBase;
...
@@ -39,6 +38,7 @@ import org.apache.flink.test.util.RecordAPITestBase;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.Key
;
import
org.apache.flink.types.Key
;
@SuppressWarnings
(
"deprecation"
)
public
class
GlobalSortingMixedOrderITCase
extends
RecordAPITestBase
{
public
class
GlobalSortingMixedOrderITCase
extends
RecordAPITestBase
{
private
static
final
int
NUM_RECORDS
=
100000
;
private
static
final
int
NUM_RECORDS
=
100000
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/GroupOrderReduceITCase.java
浏览文件 @
de7f478f
...
@@ -41,6 +41,7 @@ import org.junit.runners.Parameterized;
...
@@ -41,6 +41,7 @@ import org.junit.runners.Parameterized;
import
org.junit.runners.Parameterized.Parameters
;
import
org.junit.runners.Parameterized.Parameters
;
@RunWith
(
Parameterized
.
class
)
@RunWith
(
Parameterized
.
class
)
@SuppressWarnings
(
"deprecation"
)
public
class
GroupOrderReduceITCase
extends
RecordAPITestBase
{
public
class
GroupOrderReduceITCase
extends
RecordAPITestBase
{
private
static
final
String
INPUT
=
"1,3\n"
+
"2,1\n"
+
"5,1\n"
+
"3,1\n"
+
"1,8\n"
+
"1,9\n"
+
private
static
final
String
INPUT
=
"1,3\n"
+
"2,1\n"
+
"5,1\n"
+
"3,1\n"
+
"1,8\n"
+
"1,9\n"
+
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobTests/WordCountUnionReduceITCase.java
浏览文件 @
de7f478f
...
@@ -41,6 +41,7 @@ import org.apache.flink.types.StringValue;
...
@@ -41,6 +41,7 @@ import org.apache.flink.types.StringValue;
* This test case is an adaption of issue #192 (and #124), which revealed problems with the union readers in Nephele.
* This test case is an adaption of issue #192 (and #124), which revealed problems with the union readers in Nephele.
* The problems have been fixed with commit 1228a5e. Without this commit the test will deadlock.
* The problems have been fixed with commit 1228a5e. Without this commit the test will deadlock.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
WordCountUnionReduceITCase
extends
RecordAPITestBase
{
public
class
WordCountUnionReduceITCase
extends
RecordAPITestBase
{
private
static
final
int
MULTIPLY
=
1000
;
private
static
final
int
MULTIPLY
=
1000
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/ComputeEdgeDegrees.java
浏览文件 @
de7f478f
...
@@ -38,7 +38,7 @@ import org.apache.flink.types.IntValue;
...
@@ -38,7 +38,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
ComputeEdgeDegrees
implements
Program
,
ProgramDescription
{
public
class
ComputeEdgeDegrees
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/ConnectedComponentsWithCoGroup.java
浏览文件 @
de7f478f
...
@@ -41,10 +41,7 @@ import org.apache.flink.types.LongValue;
...
@@ -41,10 +41,7 @@ import org.apache.flink.types.LongValue;
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
ConnectedComponentsWithCoGroup
implements
Program
{
public
class
ConnectedComponentsWithCoGroup
implements
Program
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/DanglingPageRank.java
浏览文件 @
de7f478f
...
@@ -36,7 +36,7 @@ import org.apache.flink.test.recordJobs.graph.pageRankUtil.PageRankStatsAggregat
...
@@ -36,7 +36,7 @@ import org.apache.flink.test.recordJobs.graph.pageRankUtil.PageRankStatsAggregat
import
org.apache.flink.test.recordJobs.graph.pageRankUtil.PageWithRankOutFormat
;
import
org.apache.flink.test.recordJobs.graph.pageRankUtil.PageWithRankOutFormat
;
import
org.apache.flink.types.LongValue
;
import
org.apache.flink.types.LongValue
;
@SuppressWarnings
(
"deprecation"
)
public
class
DanglingPageRank
implements
Program
,
ProgramDescription
{
public
class
DanglingPageRank
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/DeltaPageRankWithInitialDeltas.java
浏览文件 @
de7f478f
...
@@ -41,6 +41,7 @@ import org.apache.flink.types.LongValue;
...
@@ -41,6 +41,7 @@ import org.apache.flink.types.LongValue;
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
DeltaPageRankWithInitialDeltas
implements
Program
,
ProgramDescription
{
public
class
DeltaPageRankWithInitialDeltas
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/EnumTrianglesOnEdgesWithDegrees.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.graph
;
package
org.apache.flink.test.recordJobs.graph
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -39,12 +38,12 @@ import org.apache.flink.types.IntValue;
...
@@ -39,12 +38,12 @@ 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
;
/**
/**
* An implementation of the triangle enumeration, which expects its input to
* An implementation of the triangle enumeration, which expects its input to
* encode the degrees of the vertices. The algorithm selects the lower-degree vertex for the
* encode the degrees of the vertices. The algorithm selects the lower-degree vertex for the
* enumeration of open triads.
* enumeration of open triads.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
EnumTrianglesOnEdgesWithDegrees
implements
Program
,
ProgramDescription
{
public
class
EnumTrianglesOnEdgesWithDegrees
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/EnumTrianglesRdfFoaf.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.graph
;
package
org.apache.flink.test.recordJobs.graph
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -52,6 +51,7 @@ import org.apache.flink.util.Collector;
...
@@ -52,6 +51,7 @@ import org.apache.flink.util.Collector;
* The algorithm was published as MapReduce job by J. Cohen in "Graph Twiddling in a MapReduce World".
* The algorithm was published as MapReduce job by J. Cohen in "Graph Twiddling in a MapReduce World".
* The Pact version was described in "MapReduce and PACT - Comparing Data Parallel Programming Models" (BTW 2011).
* The Pact version was described in "MapReduce and PACT - Comparing Data Parallel Programming Models" (BTW 2011).
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
EnumTrianglesRdfFoaf
implements
Program
,
ProgramDescription
{
public
class
EnumTrianglesRdfFoaf
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/EnumTrianglesWithDegrees.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.graph
;
package
org.apache.flink.test.recordJobs.graph
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
...
@@ -43,6 +42,7 @@ import org.apache.flink.types.IntValue;
...
@@ -43,6 +42,7 @@ import org.apache.flink.types.IntValue;
* to compute the degrees of the vertices and to select the lower-degree vertex for the
* to compute the degrees of the vertices and to select the lower-degree vertex for the
* enumeration of open triads.
* enumeration of open triads.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
EnumTrianglesWithDegrees
implements
Program
,
ProgramDescription
{
public
class
EnumTrianglesWithDegrees
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/PairwiseSP.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.graph
;
package
org.apache.flink.test.recordJobs.graph
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -58,9 +57,8 @@ import org.apache.flink.util.Collector;
...
@@ -58,9 +57,8 @@ import org.apache.flink.util.Collector;
* 2) The programs text-serialization for paths (see @see PathInFormat and @see PathOutFormat).
* 2) The programs text-serialization for paths (see @see PathInFormat and @see PathOutFormat).
*
*
* The RDF input format is used if the 4th parameter of the getPlan() method is set to "true". If set to "false" the path input format is used.
* The RDF input format is used if the 4th parameter of the getPlan() method is set to "true". If set to "false" the path input format is used.
*
*
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
PairwiseSP
implements
Program
,
ProgramDescription
{
public
class
PairwiseSP
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/SimplePageRank.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.graph
;
package
org.apache.flink.test.recordJobs.graph
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -44,7 +43,7 @@ import org.apache.flink.types.LongValue;
...
@@ -44,7 +43,7 @@ import org.apache.flink.types.LongValue;
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
SimplePageRank
implements
Program
,
ProgramDescription
{
public
class
SimplePageRank
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/WorksetConnectedComponents.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.graph
;
package
org.apache.flink.test.recordJobs.graph
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -43,9 +42,7 @@ import org.apache.flink.types.LongValue;
...
@@ -43,9 +42,7 @@ import org.apache.flink.types.LongValue;
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
WorksetConnectedComponents
implements
Program
,
ProgramDescription
{
public
class
WorksetConnectedComponents
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/pageRankUtil/DotProductCoGroup.java
浏览文件 @
de7f478f
...
@@ -37,6 +37,7 @@ import org.apache.flink.util.Collector;
...
@@ -37,6 +37,7 @@ import org.apache.flink.util.Collector;
* INPUT = (pageId, currentRank, dangling), (pageId, partialRank).
* INPUT = (pageId, currentRank, dangling), (pageId, partialRank).
* OUTPUT = (pageId, newRank, dangling)
* OUTPUT = (pageId, newRank, dangling)
*/
*/
@SuppressWarnings
(
"deprecation"
)
@ConstantFieldsFirst
(
0
)
@ConstantFieldsFirst
(
0
)
public
class
DotProductCoGroup
extends
CoGroupFunction
implements
Serializable
{
public
class
DotProductCoGroup
extends
CoGroupFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/graph/pageRankUtil/DotProductMatch.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.graph.pageRankUtil
;
package
org.apache.flink.test.recordJobs.graph.pageRankUtil
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -32,6 +31,7 @@ import org.apache.flink.util.Collector;
...
@@ -32,6 +31,7 @@ import org.apache.flink.util.Collector;
* INPUT = (pageId, rank, dangling), (pageId, neighbors-list).
* INPUT = (pageId, rank, dangling), (pageId, neighbors-list).
* OUTPUT = (targetPageId, partialRank)
* OUTPUT = (targetPageId, partialRank)
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
DotProductMatch
extends
JoinFunction
implements
Serializable
{
public
class
DotProductMatch
extends
JoinFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/KMeansCross.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.kmeans
;
package
org.apache.flink.test.recordJobs.kmeans
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -38,7 +37,7 @@ import org.apache.flink.test.recordJobs.kmeans.udfs.PointOutFormat;
...
@@ -38,7 +37,7 @@ import org.apache.flink.test.recordJobs.kmeans.udfs.PointOutFormat;
import
org.apache.flink.test.recordJobs.kmeans.udfs.RecomputeClusterCenter
;
import
org.apache.flink.test.recordJobs.kmeans.udfs.RecomputeClusterCenter
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.IntValue
;
@SuppressWarnings
(
"deprecation"
)
public
class
KMeansCross
implements
Program
,
ProgramDescription
{
public
class
KMeansCross
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/KMeansSingleStep.java
浏览文件 @
de7f478f
...
@@ -16,10 +16,8 @@
...
@@ -16,10 +16,8 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.kmeans
;
package
org.apache.flink.test.recordJobs.kmeans
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Collection
;
...
@@ -47,7 +45,7 @@ import org.apache.flink.types.Record;
...
@@ -47,7 +45,7 @@ import org.apache.flink.types.Record;
import
org.apache.flink.types.Value
;
import
org.apache.flink.types.Value
;
import
org.apache.flink.util.Collector
;
import
org.apache.flink.util.Collector
;
@SuppressWarnings
(
"deprecation"
)
public
class
KMeansSingleStep
implements
Program
,
ProgramDescription
{
public
class
KMeansSingleStep
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/ComputeDistance.java
浏览文件 @
de7f478f
...
@@ -30,6 +30,7 @@ import org.apache.flink.types.Record;
...
@@ -30,6 +30,7 @@ import org.apache.flink.types.Record;
* Cross PACT computes the distance of all data points to all cluster
* Cross PACT computes the distance of all data points to all cluster
* centers.
* centers.
*/
*/
@SuppressWarnings
(
"deprecation"
)
@ConstantFieldsFirst
({
0
,
1
})
@ConstantFieldsFirst
({
0
,
1
})
public
class
ComputeDistance
extends
CrossFunction
implements
Serializable
{
public
class
ComputeDistance
extends
CrossFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/ComputeDistanceParameterized.java
浏览文件 @
de7f478f
...
@@ -33,6 +33,7 @@ import org.apache.flink.util.Collector;
...
@@ -33,6 +33,7 @@ import org.apache.flink.util.Collector;
* Cross PACT computes the distance of all data points to all cluster
* Cross PACT computes the distance of all data points to all cluster
* centers.
* centers.
*/
*/
@SuppressWarnings
(
"deprecation"
)
@ConstantFieldsFirst
({
0
,
1
})
@ConstantFieldsFirst
({
0
,
1
})
public
class
ComputeDistanceParameterized
extends
MapFunction
implements
Serializable
{
public
class
ComputeDistanceParameterized
extends
MapFunction
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/FindNearestCenter.java
浏览文件 @
de7f478f
...
@@ -33,6 +33,7 @@ import org.apache.flink.util.Collector;
...
@@ -33,6 +33,7 @@ import org.apache.flink.util.Collector;
* Reduce PACT determines the closes cluster center for a data point. This
* Reduce PACT determines the closes cluster center for a data point. This
* is a minimum aggregation. Hence, a Combiner can be easily implemented.
* is a minimum aggregation. Hence, a Combiner can be easily implemented.
*/
*/
@SuppressWarnings
(
"deprecation"
)
@Combinable
@Combinable
@ConstantFields
(
1
)
@ConstantFields
(
1
)
public
class
FindNearestCenter
extends
ReduceFunction
implements
Serializable
{
public
class
FindNearestCenter
extends
ReduceFunction
implements
Serializable
{
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/kmeans/udfs/RecomputeClusterCenter.java
浏览文件 @
de7f478f
...
@@ -37,6 +37,7 @@ import org.apache.flink.util.Collector;
...
@@ -37,6 +37,7 @@ import org.apache.flink.util.Collector;
* 0: clusterID
* 0: clusterID
* 1: clusterVector
* 1: clusterVector
*/
*/
@SuppressWarnings
(
"deprecation"
)
@Combinable
@Combinable
@ConstantFields
(
0
)
@ConstantFields
(
0
)
public
class
RecomputeClusterCenter
extends
ReduceFunction
implements
Serializable
{
public
class
RecomputeClusterCenter
extends
ReduceFunction
implements
Serializable
{
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/MergeOnlyJoin.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
java.util.Iterator
;
import
java.util.Iterator
;
...
@@ -37,6 +36,7 @@ import org.apache.flink.types.IntValue;
...
@@ -37,6 +36,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
MergeOnlyJoin
implements
Program
{
public
class
MergeOnlyJoin
implements
Program
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery1.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
...
@@ -32,7 +31,7 @@ import org.apache.flink.test.recordJobs.util.IntTupleDataInFormat;
...
@@ -32,7 +31,7 @@ import org.apache.flink.test.recordJobs.util.IntTupleDataInFormat;
import
org.apache.flink.test.recordJobs.util.StringTupleDataOutFormat
;
import
org.apache.flink.test.recordJobs.util.StringTupleDataOutFormat
;
import
org.apache.flink.types.StringValue
;
import
org.apache.flink.types.StringValue
;
@SuppressWarnings
(
"deprecation"
)
public
class
TPCHQuery1
implements
Program
,
ProgramDescription
{
public
class
TPCHQuery1
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery10.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -44,7 +43,7 @@ import org.apache.flink.types.Record;
...
@@ -44,7 +43,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
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
TPCHQuery10
implements
Program
,
ProgramDescription
{
public
class
TPCHQuery10
implements
Program
,
ProgramDescription
{
// --------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery3.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -64,6 +63,7 @@ import org.apache.flink.util.Collector;
...
@@ -64,6 +63,7 @@ import org.apache.flink.util.Collector;
* AND o_orderpriority LIKE "Z%"
* AND o_orderpriority LIKE "Z%"
* GROUP BY l_orderkey, o_shippriority;
* GROUP BY l_orderkey, o_shippriority;
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
TPCHQuery3
implements
Program
,
ProgramDescription
{
public
class
TPCHQuery3
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery3Unioned.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
...
@@ -54,6 +53,7 @@ import org.apache.flink.types.StringValue;
...
@@ -54,6 +53,7 @@ import org.apache.flink.types.StringValue;
* AND o_orderpriority LIKE "Z%"
* AND o_orderpriority LIKE "Z%"
* GROUP BY l_orderkey, o_shippriority;
* GROUP BY l_orderkey, o_shippriority;
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
TPCHQuery3Unioned
implements
Program
,
ProgramDescription
{
public
class
TPCHQuery3Unioned
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery4.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
java.text.ParseException
;
import
java.text.ParseException
;
...
@@ -51,7 +50,8 @@ import org.slf4j.LoggerFactory;
...
@@ -51,7 +50,8 @@ import org.slf4j.LoggerFactory;
/**
/**
* Implementation of the TPC-H Query 4 as a Flink program.
* Implementation of the TPC-H Query 4 as a Flink program.
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
({
"serial"
,
"deprecation"
})
public
class
TPCHQuery4
implements
Program
,
ProgramDescription
{
public
class
TPCHQuery4
implements
Program
,
ProgramDescription
{
private
static
Logger
LOG
=
LoggerFactory
.
getLogger
(
TPCHQuery4
.
class
);
private
static
Logger
LOG
=
LoggerFactory
.
getLogger
(
TPCHQuery4
.
class
);
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQuery9.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
...
@@ -80,7 +79,7 @@ import org.slf4j.LoggerFactory;
...
@@ -80,7 +79,7 @@ import org.slf4j.LoggerFactory;
* <b>Attention:</b> The "order by" part is not implemented!
* <b>Attention:</b> The "order by" part is not implemented!
*
*
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
TPCHQuery9
implements
Program
,
ProgramDescription
{
public
class
TPCHQuery9
implements
Program
,
ProgramDescription
{
public
final
String
ARGUMENTS
=
"dop partInputPath partSuppInputPath ordersInputPath lineItemInputPath supplierInputPath nationInputPath outputPath"
;
public
final
String
ARGUMENTS
=
"dop partInputPath partSuppInputPath ordersInputPath lineItemInputPath supplierInputPath nationInputPath outputPath"
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/TPCHQueryAsterix.java
浏览文件 @
de7f478f
...
@@ -57,7 +57,7 @@ import org.apache.flink.util.Collector;
...
@@ -57,7 +57,7 @@ import org.apache.flink.util.Collector;
* GROUP BY c_mktsegment;
* GROUP BY c_mktsegment;
*
*
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
TPCHQueryAsterix
implements
Program
,
ProgramDescription
{
public
class
TPCHQueryAsterix
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/WebLogAnalysis.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational
;
package
org.apache.flink.test.recordJobs.relational
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -81,6 +80,7 @@ import org.apache.flink.util.Collector;
...
@@ -81,6 +80,7 @@ import org.apache.flink.util.Collector;
* </pre></code>
* </pre></code>
*
*
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
WebLogAnalysis
implements
Program
,
ProgramDescription
{
public
class
WebLogAnalysis
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query1Util/GroupByReturnFlag.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query1Util
;
package
org.apache.flink.test.recordJobs.relational.query1Util
;
import
java.util.Iterator
;
import
java.util.Iterator
;
...
@@ -28,6 +27,7 @@ import org.apache.flink.types.Record;
...
@@ -28,6 +27,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
GroupByReturnFlag
extends
ReduceFunction
{
public
class
GroupByReturnFlag
extends
ReduceFunction
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query1Util/LineItemFilter.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query1Util
;
package
org.apache.flink.test.recordJobs.relational.query1Util
;
import
java.text.DateFormat
;
import
java.text.DateFormat
;
...
@@ -38,8 +37,8 @@ import org.slf4j.LoggerFactory;
...
@@ -38,8 +37,8 @@ import org.slf4j.LoggerFactory;
* TODO: add parametrisation; first version uses a static interval = 90
* TODO: add parametrisation; first version uses a static interval = 90
*
*
* In prepration of the following reduce step (see {@link GroupByReturnFlag}) the key has to be set to "return flag"
* In prepration of the following reduce step (see {@link GroupByReturnFlag}) the key has to be set to "return flag"
*
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
LineItemFilter
extends
MapFunction
{
public
class
LineItemFilter
extends
MapFunction
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/AmountAggregate.java
浏览文件 @
de7f478f
...
@@ -16,10 +16,8 @@
...
@@ -16,10 +16,8 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
java.util.Iterator
;
import
java.util.Iterator
;
import
org.apache.flink.api.java.record.functions.ReduceFunction
;
import
org.apache.flink.api.java.record.functions.ReduceFunction
;
...
@@ -27,7 +25,7 @@ import org.apache.flink.types.Record;
...
@@ -27,7 +25,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
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
AmountAggregate
extends
ReduceFunction
{
public
class
AmountAggregate
extends
ReduceFunction
{
private
StringValue
value
=
new
StringValue
();
private
StringValue
value
=
new
StringValue
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/FilteredPartsJoin.java
浏览文件 @
de7f478f
...
@@ -16,10 +16,8 @@
...
@@ -16,10 +16,8 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.test.recordJobs.util.Tuple
;
import
org.apache.flink.test.recordJobs.util.Tuple
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.IntValue
;
...
@@ -27,7 +25,7 @@ import org.apache.flink.types.Record;
...
@@ -27,7 +25,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
(
"serial"
)
@SuppressWarnings
(
{
"serial"
,
"deprecation"
}
)
public
class
FilteredPartsJoin
extends
JoinFunction
{
public
class
FilteredPartsJoin
extends
JoinFunction
{
private
final
IntPair
partAndSupplierKey
=
new
IntPair
();
private
final
IntPair
partAndSupplierKey
=
new
IntPair
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/LineItemMap.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
...
@@ -24,7 +23,7 @@ import org.apache.flink.test.recordJobs.util.Tuple;
...
@@ -24,7 +23,7 @@ import org.apache.flink.test.recordJobs.util.Tuple;
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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
LineItemMap
extends
MapFunction
{
public
class
LineItemMap
extends
MapFunction
{
/**
/**
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/OrderMap.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
...
@@ -25,7 +24,7 @@ import org.apache.flink.types.IntValue;
...
@@ -25,7 +24,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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
OrderMap
extends
MapFunction
{
public
class
OrderMap
extends
MapFunction
{
private
final
Tuple
inputTuple
=
new
Tuple
();
private
final
Tuple
inputTuple
=
new
Tuple
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/OrderedPartsJoin.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
...
@@ -25,7 +24,7 @@ import org.apache.flink.types.IntValue;
...
@@ -25,7 +24,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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
OrderedPartsJoin
extends
JoinFunction
{
public
class
OrderedPartsJoin
extends
JoinFunction
{
/**
/**
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartFilter.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
...
@@ -25,7 +24,7 @@ import org.apache.flink.types.NullValue;
...
@@ -25,7 +24,7 @@ import org.apache.flink.types.NullValue;
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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
PartFilter
extends
MapFunction
{
public
class
PartFilter
extends
MapFunction
{
private
final
Tuple
inputTuple
=
new
Tuple
();
private
final
Tuple
inputTuple
=
new
Tuple
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartJoin.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
...
@@ -26,7 +25,7 @@ import org.apache.flink.types.Record;
...
@@ -26,7 +25,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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
PartJoin
extends
JoinFunction
{
public
class
PartJoin
extends
JoinFunction
{
private
final
Tuple
partSuppValue
=
new
Tuple
();
private
final
Tuple
partSuppValue
=
new
Tuple
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartListJoin.java
浏览文件 @
de7f478f
...
@@ -16,17 +16,15 @@
...
@@ -16,17 +16,15 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.Record
;
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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
PartListJoin
extends
JoinFunction
{
public
class
PartListJoin
extends
JoinFunction
{
private
final
StringIntPair
amountYearPair
=
new
StringIntPair
();
private
final
StringIntPair
amountYearPair
=
new
StringIntPair
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/PartsuppMap.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
...
@@ -24,7 +23,7 @@ import org.apache.flink.test.recordJobs.util.Tuple;
...
@@ -24,7 +23,7 @@ import org.apache.flink.test.recordJobs.util.Tuple;
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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
PartsuppMap
extends
MapFunction
{
public
class
PartsuppMap
extends
MapFunction
{
private
Tuple
inputTuple
=
new
Tuple
();
private
Tuple
inputTuple
=
new
Tuple
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/SupplierMap.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
import
org.apache.flink.api.java.record.functions.MapFunction
;
...
@@ -25,7 +24,7 @@ import org.apache.flink.types.IntValue;
...
@@ -25,7 +24,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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
SupplierMap
extends
MapFunction
{
public
class
SupplierMap
extends
MapFunction
{
private
IntValue
suppKey
=
new
IntValue
();
private
IntValue
suppKey
=
new
IntValue
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/relational/query9Util/SuppliersJoin.java
浏览文件 @
de7f478f
...
@@ -16,10 +16,8 @@
...
@@ -16,10 +16,8 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.relational.query9Util
;
package
org.apache.flink.test.recordJobs.relational.query9Util
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.api.java.record.functions.JoinFunction
;
import
org.apache.flink.test.recordJobs.util.Tuple
;
import
org.apache.flink.test.recordJobs.util.Tuple
;
import
org.apache.flink.types.IntValue
;
import
org.apache.flink.types.IntValue
;
...
@@ -27,7 +25,7 @@ import org.apache.flink.types.Record;
...
@@ -27,7 +25,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
(
"serial"
)
@SuppressWarnings
(
{
"deprecation"
,
"serial"
}
)
public
class
SuppliersJoin
extends
JoinFunction
{
public
class
SuppliersJoin
extends
JoinFunction
{
private
IntValue
suppKey
=
new
IntValue
();
private
IntValue
suppKey
=
new
IntValue
();
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/sort/ReduceGroupSort.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.sort
;
package
org.apache.flink.test.recordJobs.sort
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -42,6 +41,7 @@ import org.apache.flink.util.Collector;
...
@@ -42,6 +41,7 @@ import org.apache.flink.util.Collector;
* This job shows how to define ordered input for a Reduce contract.
* This job shows how to define ordered input for a Reduce contract.
* The inputs for CoGroups can be (individually) ordered as well.
* The inputs for CoGroups can be (individually) ordered as well.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
ReduceGroupSort
implements
Program
,
ProgramDescription
{
public
class
ReduceGroupSort
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/sort/TeraSort.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.sort
;
package
org.apache.flink.test.recordJobs.sort
;
import
org.apache.flink.api.common.Plan
;
import
org.apache.flink.api.common.Plan
;
...
@@ -38,6 +37,7 @@ import org.apache.flink.test.recordJobs.sort.tsUtil.TeraOutputFormat;
...
@@ -38,6 +37,7 @@ import org.apache.flink.test.recordJobs.sort.tsUtil.TeraOutputFormat;
* href="http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/examples/terasort/TeraGen.html">
* href="http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/examples/terasort/TeraGen.html">
* http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/examples/terasort/TeraGen.html</a>.
* http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/examples/terasort/TeraGen.html</a>.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
final
class
TeraSort
implements
Program
,
ProgramDescription
{
public
final
class
TeraSort
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/wordcount/WordCount.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.wordcount
;
package
org.apache.flink.test.recordJobs.wordcount
;
import
java.util.Iterator
;
import
java.util.Iterator
;
...
@@ -46,6 +45,7 @@ import org.apache.flink.util.Collector;
...
@@ -46,6 +45,7 @@ import org.apache.flink.util.Collector;
* Implements a word count which takes the input file and counts the number of
* Implements a word count which takes the input file and counts the number of
* the occurrences of each word in the file.
* the occurrences of each word in the file.
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
WordCount
implements
Program
,
ProgramDescription
{
public
class
WordCount
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
flink-tests/src/test/java/org/apache/flink/test/recordJobs/wordcount/WordCountAccumulators.java
浏览文件 @
de7f478f
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
org.apache.flink.test.recordJobs.wordcount
;
package
org.apache.flink.test.recordJobs.wordcount
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -57,6 +56,7 @@ import org.apache.flink.util.Collector;
...
@@ -57,6 +56,7 @@ import org.apache.flink.util.Collector;
* This is similar to the WordCount example and additionally demonstrates how to
* This is similar to the WordCount example and additionally demonstrates how to
* use custom accumulators (built-in or custom).
* use custom accumulators (built-in or custom).
*/
*/
@SuppressWarnings
(
"deprecation"
)
public
class
WordCountAccumulators
implements
Program
,
ProgramDescription
{
public
class
WordCountAccumulators
implements
Program
,
ProgramDescription
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录