Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Iotdb
提交
eee581e1
I
Iotdb
项目概览
apache
/
Iotdb
8 个月 前同步成功
通知
25
Star
3344
Fork
916
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Iotdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
eee581e1
编写于
9月 04, 2023
作者:
B
Beyyes
提交者:
GitHub
9月 04, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Perfect plan graph for last query scan node
上级
eb43b490
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
37 addition
and
10 deletion
+37
-10
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/PlanGraphPrinter.java
.../queryengine/plan/planner/plan/node/PlanGraphPrinter.java
+7
-0
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/source/AlignedLastQueryScanNode.java
...an/planner/plan/node/source/AlignedLastQueryScanNode.java
+15
-5
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/source/LastQueryScanNode.java
...gine/plan/planner/plan/node/source/LastQueryScanNode.java
+15
-5
未找到文件。
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/PlanGraphPrinter.java
浏览文件 @
eee581e1
...
...
@@ -60,6 +60,7 @@ import org.apache.iotdb.db.queryengine.plan.planner.plan.parameter.IntoPathDescr
import
org.apache.iotdb.tsfile.utils.Pair
;
import
org.apache.commons.lang3.Validate
;
import
org.eclipse.jetty.util.StringUtil
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
...
...
@@ -384,6 +385,9 @@ public class PlanGraphPrinter extends PlanVisitor<List<String>, PlanGraphPrinter
List
<
String
>
boxValue
=
new
ArrayList
<>();
boxValue
.
add
(
String
.
format
(
"LastQueryScan-%s"
,
node
.
getPlanNodeId
().
getId
()));
boxValue
.
add
(
String
.
format
(
"Series: %s"
,
node
.
getSeriesPath
()));
if
(
StringUtil
.
isNotBlank
(
node
.
getOutputViewPath
()))
{
boxValue
.
add
(
String
.
format
(
"ViewPath: %s"
,
node
.
getOutputViewPath
()));
}
boxValue
.
add
(
printRegion
(
node
.
getRegionReplicaSet
()));
return
render
(
node
,
boxValue
,
context
);
}
...
...
@@ -397,6 +401,9 @@ public class PlanGraphPrinter extends PlanVisitor<List<String>, PlanGraphPrinter
String
.
format
(
"Series: %s%s"
,
node
.
getSeriesPath
().
getDevice
(),
node
.
getSeriesPath
().
getMeasurementList
()));
if
(
StringUtil
.
isNotBlank
(
node
.
getOutputViewPath
()))
{
boxValue
.
add
(
String
.
format
(
"ViewPath: %s"
,
node
.
getOutputViewPath
()));
}
boxValue
.
add
(
printRegion
(
node
.
getRegionReplicaSet
()));
return
render
(
node
,
boxValue
,
context
);
}
...
...
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/source/AlignedLastQueryScanNode.java
浏览文件 @
eee581e1
...
...
@@ -32,6 +32,7 @@ import org.apache.iotdb.tsfile.read.filter.basic.Filter;
import
org.apache.iotdb.tsfile.utils.ReadWriteIOUtils
;
import
com.google.common.collect.ImmutableList
;
import
org.eclipse.jetty.util.StringUtil
;
import
java.io.DataOutputStream
;
import
java.io.IOException
;
...
...
@@ -158,11 +159,20 @@ public class AlignedLastQueryScanNode extends LastSeriesSourceNode {
@Override
public
String
toString
()
{
return
String
.
format
(
"AlignedLastQueryScanNode-%s:[SeriesPath: %s, DataRegion: %s]"
,
this
.
getPlanNodeId
(),
this
.
getSeriesPath
().
getFormattedString
(),
PlanNodeUtil
.
printRegionReplicaSet
(
this
.
getRegionReplicaSet
()));
if
(
StringUtil
.
isNotBlank
(
outputViewPath
))
{
return
String
.
format
(
"AlignedLastQueryScanNode-%s:[SeriesPath: %s, ViewPath: %s, DataRegion: %s]"
,
this
.
getPlanNodeId
(),
this
.
getSeriesPath
().
getFormattedString
(),
this
.
getOutputViewPath
(),
PlanNodeUtil
.
printRegionReplicaSet
(
this
.
getRegionReplicaSet
()));
}
else
{
return
String
.
format
(
"AlignedLastQueryScanNode-%s:[SeriesPath: %s, DataRegion: %s]"
,
this
.
getPlanNodeId
(),
this
.
getSeriesPath
().
getFormattedString
(),
PlanNodeUtil
.
printRegionReplicaSet
(
this
.
getRegionReplicaSet
()));
}
}
@Override
...
...
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/source/LastQueryScanNode.java
浏览文件 @
eee581e1
...
...
@@ -32,6 +32,7 @@ import org.apache.iotdb.tsfile.read.filter.basic.Filter;
import
org.apache.iotdb.tsfile.utils.ReadWriteIOUtils
;
import
com.google.common.collect.ImmutableList
;
import
org.eclipse.jetty.util.StringUtil
;
import
java.io.DataOutputStream
;
import
java.io.IOException
;
...
...
@@ -164,11 +165,20 @@ public class LastQueryScanNode extends LastSeriesSourceNode {
@Override
public
String
toString
()
{
return
String
.
format
(
"LastQueryScanNode-%s:[SeriesPath: %s, DataRegion: %s]"
,
this
.
getPlanNodeId
(),
this
.
getSeriesPath
(),
PlanNodeUtil
.
printRegionReplicaSet
(
getRegionReplicaSet
()));
if
(
StringUtil
.
isNotBlank
(
outputViewPath
))
{
return
String
.
format
(
"LastQueryScanNode-%s:[SeriesPath: %s, ViewPath: %s, DataRegion: %s]"
,
this
.
getPlanNodeId
(),
this
.
getSeriesPath
(),
this
.
getOutputViewPath
(),
PlanNodeUtil
.
printRegionReplicaSet
(
getRegionReplicaSet
()));
}
else
{
return
String
.
format
(
"LastQueryScanNode-%s:[SeriesPath: %s, DataRegion: %s]"
,
this
.
getPlanNodeId
(),
this
.
getSeriesPath
(),
PlanNodeUtil
.
printRegionReplicaSet
(
getRegionReplicaSet
()));
}
}
@Override
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录