Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
93d97428
提交
93d97428
authored
8 年前
作者:
Sergi Vladykin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Row is an interface now
上级
f3ec805a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
Row.java
h2/src/main/org/h2/result/Row.java
+13
-13
RowImpl.java
h2/src/main/org/h2/result/RowImpl.java
+1
-1
没有找到文件。
h2/src/main/org/h2/result/Row.java
浏览文件 @
93d97428
...
@@ -11,10 +11,10 @@ import org.h2.value.Value;
...
@@ -11,10 +11,10 @@ import org.h2.value.Value;
/**
/**
* Represents a row in a table.
* Represents a row in a table.
*/
*/
public
abstract
class
Row
implement
s
SearchRow
{
public
interface
Row
extend
s
SearchRow
{
public
static
final
int
MEMORY_CALCULATE
=
-
1
;
int
MEMORY_CALCULATE
=
-
1
;
public
static
final
Row
[]
EMPTY_ARRAY
=
{};
Row
[]
EMPTY_ARRAY
=
{};
/**
/**
* Get a copy of the row that is distinct from (not equal to) this row.
* Get a copy of the row that is distinct from (not equal to) this row.
...
@@ -22,14 +22,14 @@ public abstract class Row implements SearchRow {
...
@@ -22,14 +22,14 @@ public abstract class Row implements SearchRow {
*
*
* @return a new row with the same data
* @return a new row with the same data
*/
*/
public
abstract
Row
getCopy
();
Row
getCopy
();
/**
/**
* Set version.
* Set version.
*
*
* @param version row version
* @param version row version
*/
*/
public
abstract
void
setVersion
(
int
version
);
void
setVersion
(
int
version
);
/**
/**
* Get the number of bytes required for the data.
* Get the number of bytes required for the data.
...
@@ -37,52 +37,52 @@ public abstract class Row implements SearchRow {
...
@@ -37,52 +37,52 @@ public abstract class Row implements SearchRow {
* @param dummy the template buffer
* @param dummy the template buffer
* @return the number of bytes
* @return the number of bytes
*/
*/
public
abstract
int
getByteCount
(
Data
dummy
);
int
getByteCount
(
Data
dummy
);
/**
/**
* Check if this is an empty row.
* Check if this is an empty row.
*
*
* @return {@code true} if the row is empty
* @return {@code true} if the row is empty
*/
*/
public
abstract
boolean
isEmpty
();
boolean
isEmpty
();
/**
/**
* Mark the row as deleted.
* Mark the row as deleted.
*
*
* @param deleted deleted flag
* @param deleted deleted flag
*/
*/
public
abstract
void
setDeleted
(
boolean
deleted
);
void
setDeleted
(
boolean
deleted
);
/**
/**
* Set session id.
* Set session id.
*
*
* @param sessionId the session id
* @param sessionId the session id
*/
*/
public
abstract
void
setSessionId
(
int
sessionId
);
void
setSessionId
(
int
sessionId
);
/**
/**
* Get session id.
* Get session id.
*
*
* @return the session id
* @return the session id
*/
*/
public
abstract
int
getSessionId
();
int
getSessionId
();
/**
/**
* This record has been committed. The session id is reset.
* This record has been committed. The session id is reset.
*/
*/
public
abstract
void
commit
();
void
commit
();
/**
/**
* Check if the row is deleted.
* Check if the row is deleted.
*
*
* @return {@code true} if the row is deleted
* @return {@code true} if the row is deleted
*/
*/
public
abstract
boolean
isDeleted
();
boolean
isDeleted
();
/**
/**
* Get values.
* Get values.
*
*
* @return values
* @return values
*/
*/
public
abstract
Value
[]
getValueList
();
Value
[]
getValueList
();
}
}
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/result/RowImpl.java
浏览文件 @
93d97428
...
@@ -14,7 +14,7 @@ import org.h2.value.ValueLong;
...
@@ -14,7 +14,7 @@ import org.h2.value.ValueLong;
/**
/**
* Default row implementation.
* Default row implementation.
*/
*/
public
class
RowImpl
extend
s
Row
{
public
class
RowImpl
implement
s
Row
{
private
long
key
;
private
long
key
;
private
final
Value
[]
data
;
private
final
Value
[]
data
;
private
int
memory
;
private
int
memory
;
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论