Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
b81fe715
提交
b81fe715
authored
7 年前
作者:
Jacek Ławrynowicz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup - use while loops instead of incomplete for loops
上级
69adc4ee
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
PageBtreeLeaf.java
h2/src/main/org/h2/index/PageBtreeLeaf.java
+1
-1
PageBtreeNode.java
h2/src/main/org/h2/index/PageBtreeNode.java
+1
-1
PageDataLeaf.java
h2/src/main/org/h2/index/PageDataLeaf.java
+1
-1
PageDataNode.java
h2/src/main/org/h2/index/PageDataNode.java
+1
-1
JoinBatch.java
h2/src/main/org/h2/table/JoinBatch.java
+3
-3
TableFilter.java
h2/src/main/org/h2/table/TableFilter.java
+1
-1
没有找到文件。
h2/src/main/org/h2/index/PageBtreeLeaf.java
浏览文件 @
b81fe715
...
@@ -205,7 +205,7 @@ public class PageBtreeLeaf extends PageBtree {
...
@@ -205,7 +205,7 @@ public class PageBtreeLeaf extends PageBtree {
PageBtree
split
(
int
splitPoint
)
{
PageBtree
split
(
int
splitPoint
)
{
int
newPageId
=
index
.
getPageStore
().
allocatePage
();
int
newPageId
=
index
.
getPageStore
().
allocatePage
();
PageBtreeLeaf
p2
=
PageBtreeLeaf
.
create
(
index
,
newPageId
,
parentPageId
);
PageBtreeLeaf
p2
=
PageBtreeLeaf
.
create
(
index
,
newPageId
,
parentPageId
);
for
(;
splitPoint
<
entryCount
;
)
{
while
(
splitPoint
<
entryCount
)
{
p2
.
addRow
(
getRow
(
splitPoint
),
false
);
p2
.
addRow
(
getRow
(
splitPoint
),
false
);
removeRow
(
splitPoint
);
removeRow
(
splitPoint
);
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/index/PageBtreeNode.java
浏览文件 @
b81fe715
...
@@ -250,7 +250,7 @@ public class PageBtreeNode extends PageBtree {
...
@@ -250,7 +250,7 @@ public class PageBtreeNode extends PageBtree {
}
}
int
firstChild
=
childPageIds
[
splitPoint
];
int
firstChild
=
childPageIds
[
splitPoint
];
readAllRows
();
readAllRows
();
for
(;
splitPoint
<
entryCount
;
)
{
while
(
splitPoint
<
entryCount
)
{
p2
.
addChild
(
p2
.
entryCount
,
childPageIds
[
splitPoint
+
1
],
getRow
(
splitPoint
));
p2
.
addChild
(
p2
.
entryCount
,
childPageIds
[
splitPoint
+
1
],
getRow
(
splitPoint
));
removeChild
(
splitPoint
);
removeChild
(
splitPoint
);
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/index/PageDataLeaf.java
浏览文件 @
b81fe715
...
@@ -370,7 +370,7 @@ public class PageDataLeaf extends PageData {
...
@@ -370,7 +370,7 @@ public class PageDataLeaf extends PageData {
PageData
split
(
int
splitPoint
)
{
PageData
split
(
int
splitPoint
)
{
int
newPageId
=
index
.
getPageStore
().
allocatePage
();
int
newPageId
=
index
.
getPageStore
().
allocatePage
();
PageDataLeaf
p2
=
PageDataLeaf
.
create
(
index
,
newPageId
,
parentPageId
);
PageDataLeaf
p2
=
PageDataLeaf
.
create
(
index
,
newPageId
,
parentPageId
);
for
(;
splitPoint
<
entryCount
;
)
{
while
(
splitPoint
<
entryCount
)
{
int
split
=
p2
.
addRowTry
(
getRowAt
(
splitPoint
));
int
split
=
p2
.
addRowTry
(
getRowAt
(
splitPoint
));
if
(
split
!=
-
1
)
{
if
(
split
!=
-
1
)
{
DbException
.
throwInternalError
(
"split "
+
split
);
DbException
.
throwInternalError
(
"split "
+
split
);
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/index/PageDataNode.java
浏览文件 @
b81fe715
...
@@ -172,7 +172,7 @@ public class PageDataNode extends PageData {
...
@@ -172,7 +172,7 @@ public class PageDataNode extends PageData {
int
newPageId
=
index
.
getPageStore
().
allocatePage
();
int
newPageId
=
index
.
getPageStore
().
allocatePage
();
PageDataNode
p2
=
PageDataNode
.
create
(
index
,
newPageId
,
parentPageId
);
PageDataNode
p2
=
PageDataNode
.
create
(
index
,
newPageId
,
parentPageId
);
int
firstChild
=
childPageIds
[
splitPoint
];
int
firstChild
=
childPageIds
[
splitPoint
];
for
(;
splitPoint
<
entryCount
;
)
{
while
(
splitPoint
<
entryCount
)
{
p2
.
addChild
(
p2
.
entryCount
,
childPageIds
[
splitPoint
+
1
],
keys
[
splitPoint
]);
p2
.
addChild
(
p2
.
entryCount
,
childPageIds
[
splitPoint
+
1
],
keys
[
splitPoint
]);
removeChild
(
splitPoint
);
removeChild
(
splitPoint
);
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/table/JoinBatch.java
浏览文件 @
b81fe715
...
@@ -224,7 +224,7 @@ public final class JoinBatch {
...
@@ -224,7 +224,7 @@ public final class JoinBatch {
}
}
return
false
;
return
false
;
}
}
for
(;;
)
{
while
(
true
)
{
if
(!
found
)
{
if
(!
found
)
{
if
(!
batchedNext
())
{
if
(!
batchedNext
())
{
return
false
;
return
false
;
...
@@ -272,7 +272,7 @@ public final class JoinBatch {
...
@@ -272,7 +272,7 @@ public final class JoinBatch {
jfId
--;
jfId
--;
}
}
for
(;;
)
{
while
(
true
)
{
fetchCurrent
(
jfId
);
fetchCurrent
(
jfId
);
if
(!
current
.
isDropped
())
{
if
(!
current
.
isDropped
())
{
...
@@ -359,7 +359,7 @@ public final class JoinBatch {
...
@@ -359,7 +359,7 @@ public final class JoinBatch {
assert
c
!=
null
;
assert
c
!=
null
;
JoinFilter
join
=
jf
.
join
;
JoinFilter
join
=
jf
.
join
;
for
(;;
)
{
while
(
true
)
{
if
(
c
==
null
||
!
c
.
next
())
{
if
(
c
==
null
||
!
c
.
next
())
{
if
(
newCursor
&&
jf
.
isOuterJoin
())
{
if
(
newCursor
&&
jf
.
isOuterJoin
())
{
// replace cursor with null-row
// replace cursor with null-row
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/table/TableFilter.java
浏览文件 @
b81fe715
...
@@ -376,7 +376,7 @@ public class TableFilter implements ColumnResolver {
...
@@ -376,7 +376,7 @@ public class TableFilter implements ColumnResolver {
}
}
// check if we are at the top table filters all the way up
// check if we are at the top table filters all the way up
SubQueryInfo
info
=
session
.
getSubQueryInfo
();
SubQueryInfo
info
=
session
.
getSubQueryInfo
();
for
(;;
)
{
while
(
true
)
{
if
(
info
==
null
)
{
if
(
info
==
null
)
{
return
true
;
return
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论