Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
8803d15e
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,发现更多精彩内容 >>
提交
8803d15e
编写于
6月 22, 2016
作者:
K
kl0u
提交者:
Aljoscha Krettek
6月 27, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixing typos in the javadocs.
上级
819fb270
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
16 deletion
+15
-16
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/InputGate.java
...link/runtime/io/network/partition/consumer/InputGate.java
+3
-1
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/CheckpointBarrierHandler.java
.../flink/streaming/runtime/io/CheckpointBarrierHandler.java
+5
-5
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamInputProcessor.java
...ache/flink/streaming/runtime/io/StreamInputProcessor.java
+1
-3
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java
...reaming/runtime/operators/windowing/MergingWindowSet.java
+4
-5
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/streamrecord/MultiplexingStreamRecordSerializer.java
...time/streamrecord/MultiplexingStreamRecordSerializer.java
+2
-2
未找到文件。
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/InputGate.java
浏览文件 @
8803d15e
...
...
@@ -61,7 +61,9 @@ import java.io.IOException;
*
* <p> In the above example, two map subtasks produce the intermediate result in parallel, resulting
* in two partitions (Partition 1 and 2). Each of these partitions is further partitioned into two
* subpartitions -- one for each parallel reduce subtask.
* subpartitions -- one for each parallel reduce subtask. As shown in the Figure, each reduce task
* will have an input gate attached to it. This will provide its input, which will consist of one
* subpartition from each partition of the intermediate result.
*/
public
interface
InputGate
{
...
...
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/CheckpointBarrierHandler.java
浏览文件 @
8803d15e
...
...
@@ -35,12 +35,12 @@ public interface CheckpointBarrierHandler {
/**
* Returns the next {@link BufferOrEvent} that the operator may consume.
* This call blocks until the next BufferOrEvent is available,
i
r until the stream
* This call blocks until the next BufferOrEvent is available,
o
r until the stream
* has been determined to be finished.
*
* @return The next BufferOrEvent, or {@code null}, if the stream is finished.
* @throws java.io.IOException Thrown
,
if the network or local disk I/O fails.
* @throws java.lang.InterruptedException Thrown
,
if the thread is interrupted while blocking during
* @throws java.io.IOException Thrown if the network or local disk I/O fails.
* @throws java.lang.InterruptedException Thrown if the thread is interrupted while blocking during
* waiting for the next BufferOrEvent to become available.
*/
BufferOrEvent
getNextNonBlocked
()
throws
IOException
,
InterruptedException
;
...
...
@@ -55,13 +55,13 @@ public interface CheckpointBarrierHandler {
/**
* Cleans up all internally held resources.
*
* @throws IOException Thrown
,
if the cleanup of I/O resources failed.
* @throws IOException Thrown if the cleanup of I/O resources failed.
*/
void
cleanup
()
throws
IOException
;
/**
* Checks if the barrier handler has buffered any data internally.
* @return
True, if no data is buffered internally, false
otherwise.
* @return
{@code True}, if no data is buffered internally, {@code false}
otherwise.
*/
boolean
isEmpty
();
}
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/StreamInputProcessor.java
浏览文件 @
8803d15e
...
...
@@ -76,8 +76,6 @@ public class StreamInputProcessor<IN> {
private
boolean
isFinished
;
private
final
long
[]
watermarks
;
private
long
lastEmittedWatermark
;
...
...
@@ -101,7 +99,7 @@ public class StreamInputProcessor<IN> {
this
.
barrierHandler
=
new
BarrierTracker
(
inputGate
);
}
else
{
throw
new
IllegalArgumentException
(
"Unrecognized CheckpointingMode: "
+
checkpointMode
);
throw
new
IllegalArgumentException
(
"Unrecognized Checkpointing
Mode: "
+
checkpointMode
);
}
if
(
checkpointListener
!=
null
)
{
...
...
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java
浏览文件 @
8803d15e
...
...
@@ -41,8 +41,8 @@ import java.util.Map;
* {@link #getStateWindow(Window)}.
*
* <p>A new window can be added to the set of in-flight windows using
* {@link #addWindow(Window, MergeFunction)}
, t
his might merge other windows and the caller
* must react accordingly in {@link MergeFunction#merge(Object, Collection, Object, Collection)
* {@link #addWindow(Window, MergeFunction)}
. T
his might merge other windows and the caller
* must react accordingly in
the
{@link MergeFunction#merge(Object, Collection, Object, Collection)
* and adjust the outside view of windows and state.
*
* <p>Windows can be removed from the set of windows using {@link #retireWindow(Window)}.
...
...
@@ -70,7 +70,6 @@ public class MergingWindowSet<W extends Window> {
*/
public
MergingWindowSet
(
MergingWindowAssigner
<?,
W
>
windowAssigner
)
{
this
.
windowAssigner
=
windowAssigner
;
windows
=
new
HashMap
<>();
}
...
...
@@ -127,12 +126,12 @@ public class MergingWindowSet<W extends Window> {
* {@link MergeFunction} is called.
*
* <p>This returns the window that is the representative of the added window after adding.
* This can either be the new window itself, if no merge occured, or the newly merged
* This can either be the new window itself, if no merge occur
r
ed, or the newly merged
* window. Adding an element to a window or calling trigger functions should only
* happen on the returned representative. This way, we never have to deal with a new window
* that is immediately swallowed up by another window.
*
* <p>If the new window is merged the {@code MergeFunction} callback arguments also don't
* <p>If the new window is merged
,
the {@code MergeFunction} callback arguments also don't
* contain the new window as part of the list of merged windows.
*
* @param newWindow The new {@code Window} to add.
...
...
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/streamrecord/MultiplexingStreamRecordSerializer.java
浏览文件 @
8803d15e
...
...
@@ -30,8 +30,8 @@ import static java.util.Objects.requireNonNull;
/**
* Serializer for {@link StreamRecord} and {@link Watermark}. This does not behave like a normal
* {@link TypeSerializer}, instead, this is only used at the stream task/oper
t
ator level for
* transmitting StreamRecords
}
and Watermarks.
* {@link TypeSerializer}, instead, this is only used at the stream task/operator level for
* transmitting StreamRecords and Watermarks.
*
* @param <T> The type of value in the StreamRecord
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录