Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
376156ea
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,发现更多精彩内容 >>
提交
376156ea
编写于
6月 21, 2013
作者:
S
StephanEwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed webfrontend plan display for workset iterations.
上级
217286b4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
74 addition
and
13 deletion
+74
-13
pact/pact-clients/resources/web-docs/css/pactgraphs.css
pact/pact-clients/resources/web-docs/css/pactgraphs.css
+1
-1
pact/pact-clients/resources/web-docs/css/pactgraphs_small.css
.../pact-clients/resources/web-docs/css/pactgraphs_small.css
+1
-1
pact/pact-clients/resources/web-docs/js/pactgraph.js
pact/pact-clients/resources/web-docs/js/pactgraph.js
+72
-11
未找到文件。
pact/pact-clients/resources/web-docs/css/pactgraphs.css
浏览文件 @
376156ea
...
...
@@ -49,7 +49,7 @@
width
:
50px
;
height
:
50px
;
font-family
:
verdana
;
font-family
:
Arial
;
font-weight
:
bold
;
font-size
:
16px
;
color
:
#333333
;
...
...
pact/pact-clients/resources/web-docs/css/pactgraphs_small.css
浏览文件 @
376156ea
...
...
@@ -49,7 +49,7 @@
width
:
30px
;
height
:
30px
;
font-family
:
verdana
;
font-family
:
Arial
;
font-weight
:
bold
;
font-size
:
12px
;
color
:
#333333
;
...
...
pact/pact-clients/resources/web-docs/js/pactgraph.js
浏览文件 @
376156ea
var
BULK_ITERATION_TYPE
=
"
bulk_iteration
"
;
var
WORKSET_ITERATION_TYPE
=
"
workset_iteration
"
;
/*
* Global variable that stores the pact plan as a map
...
...
@@ -132,7 +133,8 @@ function topoSort(nodes)
return
sortedNodes
;
}
function
makeIdMap
(
arrayObj
,
allNodes
)
{
function
makeIdMap
(
arrayObj
,
allNodes
)
{
for
(
var
i
=
0
;
i
<
arrayObj
.
length
;
i
++
)
{
var
node
=
arrayObj
[
i
];
...
...
@@ -326,11 +328,11 @@ function drawNode(node, nodeStr, columnWidth) {
var
cont
=
node
.
contents
==
undefined
?
"
Unnamed Bulk Iteration
"
:
node
.
contents
;
var
partialSolution
=
node
.
partial_solution_node
;
var
nextPartial
=
node
.
next_partial_solution_node
;
nodeStr
+=
'
<div class="block draggable iteration-box" id="pactNode_
'
+
node
.
id
+
'
" style="left:
'
+
(
node
.
xCenterPos
-
(
columnWidth
/
2
))
+
'
px; top:
'
+
(
node
.
yCenterPos
-
(
node
.
iter_height
/
2
))
+
'
px; width:
'
+
node
.
iter_width
+
'
px;">
'
;
nodeStr
+=
'
<div class="iteration-name-label">
'
+
cont
+
'
</div>
'
;
nodeStr
+=
'
<div class="block iteration-set-box iteration-set-box-left" id="pactNode_
'
+
node
.
partial_solution
+
'
" style="top:
'
+
(
partialSolution
.
yCenterPos
-
15
)
+
'
px; vertical-align: middle;"></div>
'
;
nodeStr
+=
'
<div class="block iteration-set-box iteration-set-box-right" id="pactNode_
'
+
node
.
id
+
'
_ns" style="top:
'
+
(
nextPartial
.
yCenterPos
-
15
)
+
'
px; vertical-align: middle;"></div>
'
;
for
(
var
i
=
0
;
i
<
node
.
step_function
.
length
;
i
++
)
{
var
child
=
node
.
step_function
[
i
];
...
...
@@ -339,6 +341,35 @@ function drawNode(node, nodeStr, columnWidth) {
}
}
nodeStr
+=
'
</div>
'
;
}
else
if
(
node
.
type
==
WORKSET_ITERATION_TYPE
)
{
var
cont
=
node
.
contents
==
undefined
?
"
Unnamed Workset Iteration
"
:
node
.
contents
;
var
solutionSet
=
node
.
solution_set_node
;
var
solutionDelta
=
node
.
solution_delta_node
;
var
workset
=
node
.
workset_node
;
var
nextWorkset
=
node
.
next_workset_node
;
var
vStart
=
node
.
yCenterPos
-
(
node
.
iter_height
/
2
);
var
vEnd
=
vStart
+
node
.
iter_height
;
// iteration box
nodeStr
+=
'
<div class="block draggable iteration-box" id="pactNode_
'
+
node
.
id
+
'
" style="left:
'
+
(
node
.
xCenterPos
-
(
columnWidth
/
2
))
+
'
px; top:
'
+
vStart
+
'
px; width:
'
+
node
.
iter_width
+
'
px;">
'
;
nodeStr
+=
'
<div class="iteration-name-label">
'
+
cont
+
'
</div>
'
;
// boxes for workset, solution set, etc
nodeStr
+=
'
<div class="block iteration-set-box iteration-set-box-left" id="pactNode_
'
+
node
.
workset
+
'
" style="top: 30px; vertical-align: middle;">WS</div>
'
;
nodeStr
+=
'
<div class="block iteration-set-box iteration-set-box-left" id="pactNode_
'
+
node
.
solution_set
+
'
" style="bottom: 30px; vertical-align: middle;">S</div>
'
;
nodeStr
+=
'
<div class="block iteration-set-box iteration-set-box-right" id="pactNode_
'
+
node
.
id
+
'
_nw" style="top: 30px; vertical-align: middle;">WS
\'
</div>
'
;
nodeStr
+=
'
<div class="block iteration-set-box iteration-set-box-right" id="pactNode_
'
+
node
.
id
+
'
_sd" style="bottom: 30px; vertical-align: middle; font-size: 24px;">∆</div>
'
;
for
(
var
i
=
0
;
i
<
node
.
step_function
.
length
;
i
++
)
{
var
child
=
node
.
step_function
[
i
];
if
(
child
.
type
!=
undefined
&&
child
.
pact
!=
"
Solution Set
"
&&
child
.
pact
!=
"
Workset
"
)
{
nodeStr
=
drawNode
(
child
,
nodeStr
,
columnWidth
);
}
}
nodeStr
+=
'
</div>
'
;
}
else
{
// pact or unknown
...
...
@@ -425,7 +456,7 @@ function drawPactPlan(plan, propEvents, imageFile)
{
var
node
=
allNodes
[
i
];
if
(
node
.
type
==
BULK_ITERATION_TYPE
)
{
if
(
node
.
type
==
BULK_ITERATION_TYPE
||
node
.
type
==
WORKSET_ITERATION_TYPE
)
{
node
.
iter_height
=
iterHeight
;
}
...
...
@@ -488,24 +519,54 @@ function drawPactPlan(plan, propEvents, imageFile)
for
(
var
i
=
0
;
i
<
allNodes
.
length
;
i
++
)
{
var
node
=
allNodes
[
i
];
var
postId
=
node
.
id
;
if
(
node
.
type
==
BULK_ITERATION_TYPE
)
{
postId
=
node
.
partial_solution
;
// create the edge from the partial solution root to the box anchor
edgesStr
=
drawEdge
(
edgesStr
,
node
.
next_partial_solution_node
,
node
.
next_partial_solution
,
node
.
id
+
'
_ns
'
,
imageFile
);
}
if
(
node
.
type
==
WORKSET_ITERATION_TYPE
)
{
// create the edges from the solution set delta and the next workset to the box anchor
edgesStr
=
drawEdge
(
edgesStr
,
node
.
next_workset_node
,
node
.
next_workset
,
node
.
id
+
'
_nw
'
,
imageFile
);
edgesStr
=
drawEdge
(
edgesStr
,
node
.
solution_delta_node
,
node
.
solution_delta
,
node
.
id
+
'
_sd
'
,
imageFile
);
}
// add the edges
if
(
node
.
predecessors
!=
undefined
&&
node
.
predecessors
instanceof
Array
)
{
for
(
var
k
=
0
;
k
<
node
.
predecessors
.
length
;
k
++
)
{
var
pre
=
node
.
predecessors
[
k
];
if
(
pre
.
link
!=
undefined
)
{
var
preId
=
pre
.
link
.
id
;
var
postId
=
node
.
id
;
if
(
node
.
type
==
BULK_ITERATION_TYPE
)
{
postId
=
node
.
partial_solution
;
// create the edge from the partial solution root to the box anchor
edgesStr
=
drawEdge
(
edgesStr
,
node
.
next_partial_solution_node
,
node
.
next_partial_solution
,
node
.
id
+
'
_ns
'
,
imageFile
);
// if the connections feed into a workset iteration make sure they arrive at the correct dock points
if
(
node
.
type
==
WORKSET_ITERATION_TYPE
)
{
if
(
pre
.
side
==
"
first
"
)
{
postId
=
node
.
solution_set
;
}
else
if
(
pre
.
side
==
"
second
"
)
{
postId
=
node
.
workset
;
}
}
// for successors of bulk iterations, the edge should be anchored at the next-partial-solution box
if
(
pre
.
link
.
type
==
BULK_ITERATION_TYPE
)
{
preId
=
pre
.
link
.
id
+
'
_ns
'
;
}
// adjust the markup for the solution set index accesses
if
(
pre
.
link
.
pact
!=
undefined
&&
pre
.
link
.
pact
==
"
Solution Set
"
)
{
pre
.
ship_strategy
=
undefined
;
pre
.
local_strategy
=
undefined
;
pre
.
temp_mode
=
"
Hash Index
"
;
}
// beautify the pipeline breaker representation
if
(
pre
.
temp_mode
==
"
PIPELINE_BREAKER
"
)
{
pre
.
temp_mode
=
"
Pipeline Breaker
"
;
}
edgesStr
=
drawEdge
(
edgesStr
,
pre
,
preId
,
postId
,
imageFile
);
}
}
...
...
@@ -524,7 +585,7 @@ function drawPactPlan(plan, propEvents, imageFile)
if
(
propEvents
)
{
// register the event handlers that react on clicks on the box as it is
$
(
'
.pact
'
).
click
(
function
()
{
showProperties
(
$
(
this
))});
$
(
'
.iteration-box
'
).
click
(
function
()
{
showProperties
(
$
(
this
))});
//
$('.iteration-box').click(function () { showProperties($(this))});
$
(
'
.datasource
'
).
click
(
function
()
{
showProperties
(
$
(
this
))});
$
(
'
.datasink
'
).
click
(
function
()
{
showProperties
(
$
(
this
))});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录