Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
e635e003
提交
e635e003
authored
7月 14, 2016
作者:
Sergi Vladykin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor API change: Index.createLookupBatch
上级
749aa5a5
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
11 行增加
和
8 行删除
+11
-8
BaseIndex.java
h2/src/main/org/h2/index/BaseIndex.java
+1
-1
Index.java
h2/src/main/org/h2/index/Index.java
+3
-2
MultiVersionIndex.java
h2/src/main/org/h2/index/MultiVersionIndex.java
+1
-1
ViewIndex.java
h2/src/main/org/h2/index/ViewIndex.java
+1
-1
TableFilter.java
h2/src/main/org/h2/table/TableFilter.java
+3
-2
TestTableEngines.java
h2/src/test/org/h2/test/db/TestTableEngines.java
+2
-1
没有找到文件。
h2/src/main/org/h2/index/BaseIndex.java
浏览文件 @
e635e003
...
...
@@ -473,7 +473,7 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
}
@Override
public
IndexLookupBatch
createLookupBatch
(
TableFilter
filter
)
{
public
IndexLookupBatch
createLookupBatch
(
TableFilter
[]
filters
,
int
filter
)
{
// Lookup batching is not supported.
return
null
;
}
...
...
h2/src/main/org/h2/index/Index.java
浏览文件 @
e635e003
...
...
@@ -263,9 +263,10 @@ public interface Index extends SchemaObject {
* Creates new lookup batch. Note that returned {@link IndexLookupBatch}
* instance can be used multiple times.
*
* @param filter Table filter.
* @param filters the table filters
* @param filter the filter index (0, 1,...)
* @return created batch or {@code null} if batched lookup is not supported
* by this index.
*/
IndexLookupBatch
createLookupBatch
(
TableFilter
filter
);
IndexLookupBatch
createLookupBatch
(
TableFilter
[]
filters
,
int
filter
);
}
h2/src/main/org/h2/index/MultiVersionIndex.java
浏览文件 @
e635e003
...
...
@@ -389,7 +389,7 @@ public class MultiVersionIndex implements Index {
}
@Override
public
IndexLookupBatch
createLookupBatch
(
TableFilter
filter
)
{
public
IndexLookupBatch
createLookupBatch
(
TableFilter
[]
filters
,
int
filter
)
{
// Lookup batching is not supported.
return
null
;
}
...
...
h2/src/main/org/h2/index/ViewIndex.java
浏览文件 @
e635e003
...
...
@@ -110,7 +110,7 @@ public class ViewIndex extends BaseIndex implements SpatialIndex {
}
@Override
public
IndexLookupBatch
createLookupBatch
(
TableFilter
filter
)
{
public
IndexLookupBatch
createLookupBatch
(
TableFilter
[]
filters
,
int
filter
)
{
if
(
recursive
)
{
// we do not support batching for recursive queries
return
null
;
...
...
h2/src/main/org/h2/table/TableFilter.java
浏览文件 @
e635e003
...
...
@@ -393,6 +393,7 @@ public class TableFilter implements ColumnResolver {
* lookups, {@code null} otherwise
*/
public
JoinBatch
prepareJoinBatch
(
JoinBatch
jb
,
TableFilter
[]
filters
,
int
filter
)
{
assert
filters
[
filter
]
==
this
;
joinBatch
=
null
;
joinFilterId
=
-
1
;
if
(
getTable
().
isView
())
{
...
...
@@ -414,7 +415,7 @@ public class TableFilter implements ColumnResolver {
// sub-query.
IndexLookupBatch
lookupBatch
=
null
;
if
(
jb
==
null
&&
select
!=
null
&&
!
isAlwaysTopTableFilter
(
filter
))
{
lookupBatch
=
index
.
createLookupBatch
(
this
);
lookupBatch
=
index
.
createLookupBatch
(
filters
,
filter
);
if
(
lookupBatch
!=
null
)
{
jb
=
new
JoinBatch
(
filter
+
1
,
join
);
}
...
...
@@ -429,7 +430,7 @@ public class TableFilter implements ColumnResolver {
// createLookupBatch will be called at most once because jb can
// be created only if lookupBatch is already not null from the
// call above.
lookupBatch
=
index
.
createLookupBatch
(
this
);
lookupBatch
=
index
.
createLookupBatch
(
filters
,
filter
);
if
(
lookupBatch
==
null
)
{
// the index does not support lookup batching, need to fake
// it because we are not top
...
...
h2/src/test/org/h2/test/db/TestTableEngines.java
浏览文件 @
e635e003
...
...
@@ -1348,7 +1348,8 @@ public class TestTableEngines extends TestBase {
}
@Override
public
IndexLookupBatch
createLookupBatch
(
final
TableFilter
filter
)
{
public
IndexLookupBatch
createLookupBatch
(
TableFilter
[]
filters
,
int
f
)
{
final
TableFilter
filter
=
filters
[
f
];
assert0
(
filter
.
getMasks
()
!=
null
||
"scan"
.
equals
(
getName
()),
"masks"
);
final
int
preferredSize
=
preferredBatchSize
;
if
(
preferredSize
==
0
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论