Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
78d9ae9b
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,发现更多精彩内容 >>
提交
78d9ae9b
编写于
8月 30, 2016
作者:
S
Stephan Ewen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FLINK-4271] [DataStream API] Extends JavaDocs for 'apply(...)' and 'with(...)' functions.
上级
2a20229b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
59 addition
and
29 deletion
+59
-29
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/CoGroupedStreams.java
...ache/flink/streaming/api/datastream/CoGroupedStreams.java
+21
-11
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/JoinedStreams.java
.../apache/flink/streaming/api/datastream/JoinedStreams.java
+38
-18
未找到文件。
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/CoGroupedStreams.java
浏览文件 @
78d9ae9b
...
...
@@ -224,6 +224,10 @@ public class CoGroupedStreams<T1, T2> {
/**
* Completes the co-group operation with the user function that is executed
* for windowed groups.
*
* <p>Note: This method's return type does not support setting an operator-specific parallelism.
* Due to binary backwards compatibility, this cannot be altered. Use the {@link #with(CoGroupFunction)}
* method to set an operator-specific parallelism.
*/
public
<
T
>
DataStream
<
T
>
apply
(
CoGroupFunction
<
T1
,
T2
,
T
>
function
)
{
...
...
@@ -244,12 +248,13 @@ public class CoGroupedStreams<T1, T2> {
* Completes the co-group operation with the user function that is executed
* for windowed groups.
*
* <p>
* Note: This is a temporary workaround while the {@link #apply(CoGroupFunction)} method has the wrong return type.
* </p>
* @deprecated This method will be replaced by {@link #apply(CoGroupFunction)} in Flink 2.0.
* So use the {@link #apply(CoGroupFunction)} in the future.
*/
* <p><b>Note:</b> This is a temporary workaround while the {@link #apply(CoGroupFunction)}
* method has the wrong return type and hence does not allow one to set an operator-specific
* parallelism
*
* @deprecated This method will be removed once the {@link #apply(CoGroupFunction)} method is fixed
* in the next major version of Flink (2.0).
*/
@PublicEvolving
@Deprecated
public
<
T
>
SingleOutputStreamOperator
<
T
>
with
(
CoGroupFunction
<
T1
,
T2
,
T
>
function
)
{
...
...
@@ -259,6 +264,10 @@ public class CoGroupedStreams<T1, T2> {
/**
* Completes the co-group operation with the user function that is executed
* for windowed groups.
*
* <p>Note: This method's return type does not support setting an operator-specific parallelism.
* Due to binary backwards compatibility, this cannot be altered. Use the
* {@link #with(CoGroupFunction, TypeInformation)} method to set an operator-specific parallelism.
*/
public
<
T
>
DataStream
<
T
>
apply
(
CoGroupFunction
<
T1
,
T2
,
T
>
function
,
TypeInformation
<
T
>
resultType
)
{
//clean the closure
...
...
@@ -297,11 +306,12 @@ public class CoGroupedStreams<T1, T2> {
* Completes the co-group operation with the user function that is executed
* for windowed groups.
*
* <p>
* Note: This is a temporary workaround while the {@link #apply(CoGroupFunction, TypeInformation)} method has the wrong return type.
* </p>
* @deprecated This method will be replaced by {@link #apply(CoGroupFunction, TypeInformation)} in Flink 2.0.
* So use the {@link #apply(CoGroupFunction, TypeInformation)} in the future.
* <p><b>Note:</b> This is a temporary workaround while the {@link #apply(CoGroupFunction, TypeInformation)}
* method has the wrong return type and hence does not allow one to set an operator-specific
* parallelism
*
* @deprecated This method will be removed once the {@link #apply(CoGroupFunction, TypeInformation)}
* method is fixed in the next major version of Flink (2.0).
*/
@PublicEvolving
@Deprecated
...
...
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/JoinedStreams.java
浏览文件 @
78d9ae9b
...
...
@@ -219,6 +219,10 @@ public class JoinedStreams<T1, T2> {
/**
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>Note: This method's return type does not support setting an operator-specific parallelism.
* Due to binary backwards compatibility, this cannot be altered. Use the {@link #with(JoinFunction)}
* method to set an operator-specific parallelism.
*/
public
<
T
>
DataStream
<
T
>
apply
(
JoinFunction
<
T1
,
T2
,
T
>
function
)
{
TypeInformation
<
T
>
resultType
=
TypeExtractor
.
getBinaryOperatorReturnType
(
...
...
@@ -238,11 +242,12 @@ public class JoinedStreams<T1, T2> {
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>
* Note: This is a temporary workaround while the {@link #apply(JoinFunction)} method has the wrong return type.
* </p>
* @deprecated This method will be replaced by {@link #apply(JoinFunction)} in Flink 2.0.
* So use the {@link #apply(JoinFunction)} in the future.
* <p><b>Note:</b> This is a temporary workaround while the {@link #apply(JoinFunction)}
* method has the wrong return type and hence does not allow one to set an operator-specific
* parallelism
*
* @deprecated This method will be removed once the {@link #apply(JoinFunction)} method is fixed
* in the next major version of Flink (2.0).
*/
@PublicEvolving
@Deprecated
...
...
@@ -253,6 +258,10 @@ public class JoinedStreams<T1, T2> {
/**
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>Note: This method's return type does not support setting an operator-specific parallelism.
* Due to binary backwards compatibility, this cannot be altered. Use the
* {@link #with(JoinFunction, TypeInformation)}, method to set an operator-specific parallelism.
*/
public
<
T
>
DataStream
<
T
>
apply
(
FlatJoinFunction
<
T1
,
T2
,
T
>
function
,
TypeInformation
<
T
>
resultType
)
{
//clean the closure
...
...
@@ -273,9 +282,10 @@ public class JoinedStreams<T1, T2> {
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>
* Note: This is a temporary workaround while the {@link #apply(FlatJoinFunction, TypeInformation)} method has the wrong return type.
* </p>
* <p><b>Note:</b> This is a temporary workaround while the {@link #apply(JoinFunction, TypeInformation)}
* method has the wrong return type and hence does not allow one to set an operator-specific
* parallelism
*
* @deprecated This method will be replaced by {@link #apply(FlatJoinFunction, TypeInformation)} in Flink 2.0.
* So use the {@link #apply(FlatJoinFunction, TypeInformation)} in the future.
*/
...
...
@@ -288,6 +298,10 @@ public class JoinedStreams<T1, T2> {
/**
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>Note: This method's return type does not support setting an operator-specific parallelism.
* Due to binary backwards compatibility, this cannot be altered. Use the
* {@link #with(FlatJoinFunction)}, method to set an operator-specific parallelism.
*/
public
<
T
>
DataStream
<
T
>
apply
(
FlatJoinFunction
<
T1
,
T2
,
T
>
function
)
{
TypeInformation
<
T
>
resultType
=
TypeExtractor
.
getBinaryOperatorReturnType
(
...
...
@@ -307,11 +321,12 @@ public class JoinedStreams<T1, T2> {
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>
* Note: This is a temporary workaround while the {@link #apply(FlatJoinFunction)} method has the wrong return type.
* </p>
* @deprecated This method will be replaced by {@link #apply(FlatJoinFunction)} in Flink 2.0.
* So use the {@link #apply(FlatJoinFunction)} in the future.
* <p><b>Note:</b> This is a temporary workaround while the {@link #apply(FlatJoinFunction)}
* method has the wrong return type and hence does not allow one to set an operator-specific
* parallelism.
*
* @deprecated This method will be removed once the {@link #apply(FlatJoinFunction)}
* method is fixed in the next major version of Flink (2.0).
*/
@PublicEvolving
@Deprecated
...
...
@@ -322,6 +337,10 @@ public class JoinedStreams<T1, T2> {
/**
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>Note: This method's return type does not support setting an operator-specific parallelism.
* Due to binary backwards compatibility, this cannot be altered. Use the
* {@link #with(JoinFunction, TypeInformation)}, method to set an operator-specific parallelism.
*/
public
<
T
>
DataStream
<
T
>
apply
(
JoinFunction
<
T1
,
T2
,
T
>
function
,
TypeInformation
<
T
>
resultType
)
{
//clean the closure
...
...
@@ -341,11 +360,12 @@ public class JoinedStreams<T1, T2> {
* Completes the join operation with the user function that is executed
* for each combination of elements with the same key in a window.
*
* <p>
* Note: This is a temporary workaround while the {@link #apply(JoinFunction, TypeInformation)} method has the wrong return type.
* </p>
* @deprecated This method will be replaced by {@link #apply(JoinFunction, TypeInformation)} in Flink 2.0.
* So use the {@link #apply(JoinFunction, TypeInformation)} in the future.
* <p><b>Note:</b> This is a temporary workaround while the {@link #apply(FlatJoinFunction, TypeInformation)}
* method has the wrong return type and hence does not allow one to set an operator-specific
* parallelism
*
* @deprecated This method will be removed once the {@link #apply(JoinFunction, TypeInformation)}
* method is fixed in the next major version of Flink (2.0).
*/
@PublicEvolving
@Deprecated
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录