Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
53fcecbf
提交
53fcecbf
authored
6 年前
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add comments to Data.ROW and ValueDataType.ROW
上级
d1c796bd
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
6 行删除
+15
-6
ValueDataType.java
h2/src/main/org/h2/mvstore/db/ValueDataType.java
+8
-3
Data.java
h2/src/main/org/h2/store/Data.java
+7
-3
没有找到文件。
h2/src/main/org/h2/mvstore/db/ValueDataType.java
浏览文件 @
53fcecbf
...
...
@@ -59,6 +59,10 @@ import org.h2.value.ValueUuid;
*/
public
class
ValueDataType
implements
DataType
{
/**
* Storage type for ValueRow.
*/
private
static
final
int
ROW
=
27
;
private
static
final
int
INT_0_15
=
32
;
private
static
final
int
LONG_0_7
=
48
;
private
static
final
int
DECIMAL_0_1
=
56
;
...
...
@@ -74,7 +78,6 @@ public class ValueDataType implements DataType {
private
static
final
int
BYTES_0_31
=
100
;
private
static
final
int
SPATIAL_KEY_2D
=
132
;
private
static
final
int
CUSTOM_DATA_TYPE
=
133
;
private
static
final
int
ROW
=
27
;
final
DataHandler
handler
;
final
CompareMode
compareMode
;
...
...
@@ -399,7 +402,8 @@ public class ValueDataType implements DataType {
case
Value
.
ARRAY
:
case
Value
.
ROW
:
{
Value
[]
list
=
((
ValueCollectionBase
)
v
).
getList
();
buff
.
put
((
byte
)
(
type
==
Value
.
ARRAY
?
Value
.
ARRAY
:
ROW
)).
putVarInt
(
list
.
length
);
buff
.
put
((
byte
)
(
type
==
Value
.
ARRAY
?
Value
.
ARRAY
:
/* Special storage type for ValueRow */
ROW
))
.
putVarInt
(
list
.
length
);
for
(
Value
x
:
list
)
{
writeValue
(
buff
,
x
);
}
...
...
@@ -615,7 +619,8 @@ public class ValueDataType implements DataType {
}
}
case
Value
.
ARRAY
:
case
ROW:
{
case
ROW:
// Special storage type for ValueRow
{
int
len
=
readVarInt
(
buff
);
Value
[]
list
=
new
Value
[
len
];
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/store/Data.java
浏览文件 @
53fcecbf
...
...
@@ -75,6 +75,10 @@ public class Data {
*/
private
static
final
int
LENGTH_LONG
=
8
;
/**
* Storage type for ValueRow.
*/
private
static
final
int
ROW
=
27
;
private
static
final
int
INT_0_15
=
32
;
private
static
final
int
LONG_0_7
=
48
;
private
static
final
int
DECIMAL_0_1
=
56
;
...
...
@@ -92,7 +96,6 @@ public class Data {
private
static
final
int
LOCAL_DATE
=
133
;
private
static
final
int
LOCAL_TIMESTAMP
=
134
;
private
static
final
byte
CUSTOM_DATA_TYPE
=
(
byte
)
135
;
private
static
final
int
ROW
=
27
;
private
static
final
long
MILLIS_PER_MINUTE
=
1000
*
60
;
...
...
@@ -622,7 +625,7 @@ public class Data {
}
case
Value
.
ARRAY
:
case
Value
.
ROW
:
{
writeByte
((
byte
)
(
type
==
Value
.
ARRAY
?
Value
.
ARRAY
:
ROW
));
writeByte
((
byte
)
(
type
==
Value
.
ARRAY
?
Value
.
ARRAY
:
/* Special storage type for ValueRow */
ROW
));
Value
[]
list
=
((
ValueCollectionBase
)
v
).
getList
();
writeVarInt
(
list
.
length
);
for
(
Value
x
:
list
)
{
...
...
@@ -853,7 +856,8 @@ public class Data {
}
}
case
Value
.
ARRAY
:
case
ROW:
{
case
ROW:
// Special storage type for ValueRow
{
int
len
=
readVarInt
();
Value
[]
list
=
new
Value
[
len
];
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论