Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
71429fde
提交
71429fde
authored
11月 13, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
23b43e80
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
1007 行增加
和
979 行删除
+1007
-979
changelog.html
h2/src/docsrc/html/changelog.html
+3
-3
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+326
-323
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+326
-323
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+325
-324
SysProperties.java
h2/src/main/org/h2/constant/SysProperties.java
+1
-1
FullText.java
h2/src/main/org/h2/fulltext/FullText.java
+8
-1
FullTextSettings.java
h2/src/main/org/h2/fulltext/FullTextSettings.java
+9
-1
FileSystemSplit.java
h2/src/main/org/h2/store/fs/FileSystemSplit.java
+9
-3
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
71429fde
...
@@ -21,7 +21,7 @@ Change Log
...
@@ -21,7 +21,7 @@ Change Log
<ul><li>
File systems with a maximum file size (for example FAT) are now supported using
<ul><li>
File systems with a maximum file size (for example FAT) are now supported using
the file prefix 'split:'. In this case the files are split in parts of 1 GB.
the file prefix 'split:'. In this case the files are split in parts of 1 GB.
Example URL: jdbc:h2:split:~/db/test. If you want to split into parts of 1 MB, use
Example URL: jdbc:h2:split:~/db/test. If you want to split into parts of 1 MB, use
jdbc:h2:split:20:~/db/test (the part size is 1
<
<
x
,
the
default
is
30
meaning
1
GB
).
jdbc:h2:split:20:~/db/test (the part size is 1
<<
x, the default is 30 meaning 1 GB).
</li><li>
The database now tries to detect if the classloader or virtual machine has
</li><li>
The database now tries to detect if the classloader or virtual machine has
almost shut down by checking if static final variables are set to null.
almost shut down by checking if static final variables are set to null.
This should help reduce exceptions when stopping the web application.
This should help reduce exceptions when stopping the web application.
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
71429fde
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
71429fde
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
71429fde
差异被折叠。
点击展开。
h2/src/main/org/h2/constant/SysProperties.java
浏览文件 @
71429fde
...
@@ -540,7 +540,7 @@ public class SysProperties {
...
@@ -540,7 +540,7 @@ public class SysProperties {
/**
/**
* System property <code>h2.splitFileSizeShift</code> (default: 30).<br />
* System property <code>h2.splitFileSizeShift</code> (default: 30).<br />
* The maximum file size of a split file is 1L
<<
x.
* The maximum file size of a split file is 1L
<<
x.
*/
*/
public
static
final
long
SPLIT_FILE_SIZE_SHIFT
=
getIntSetting
(
"h2.splitFileSizeShift"
,
20
);
public
static
final
long
SPLIT_FILE_SIZE_SHIFT
=
getIntSetting
(
"h2.splitFileSizeShift"
,
20
);
...
...
h2/src/main/org/h2/fulltext/FullText.java
浏览文件 @
71429fde
...
@@ -473,7 +473,14 @@ public class FullText implements Trigger, CloseListener {
...
@@ -473,7 +473,14 @@ public class FullText implements Trigger, CloseListener {
return
"'"
+
ByteUtils
.
convertBytesToString
(
data
)
+
"'"
;
return
"'"
+
ByteUtils
.
convertBytesToString
(
data
)
+
"'"
;
}
}
static
String
asString
(
Object
data
,
int
type
)
throws
SQLException
{
/**
* Convert the object to a string.
*
* @param data the object
* @param type the SQL type
* @return the string
*/
protected
static
String
asString
(
Object
data
,
int
type
)
throws
SQLException
{
if
(
data
==
null
)
{
if
(
data
==
null
)
{
return
"NULL"
;
return
"NULL"
;
}
}
...
...
h2/src/main/org/h2/fulltext/FullTextSettings.java
浏览文件 @
71429fde
...
@@ -120,11 +120,19 @@ class FullTextSettings {
...
@@ -120,11 +120,19 @@ class FullTextSettings {
this
.
prepSelectRowById
=
prepSelectRowById
;
this
.
prepSelectRowById
=
prepSelectRowById
;
}
}
/**
* Remove all indexes from the settings.
*/
void
removeAllIndexes
()
{
void
removeAllIndexes
()
{
indexes
.
clear
();
indexes
.
clear
();
}
}
public
void
removeIndexInfo
(
IndexInfo
index
)
{
/**
* Remove an index from the settings.
*
* @param index the index to remove
*/
void
removeIndexInfo
(
IndexInfo
index
)
{
indexes
.
remove
(
ObjectUtils
.
getLong
(
index
.
id
));
indexes
.
remove
(
ObjectUtils
.
getLong
(
index
.
id
));
}
}
...
...
h2/src/main/org/h2/store/fs/FileSystemSplit.java
浏览文件 @
71429fde
...
@@ -21,10 +21,9 @@ import org.h2.message.Message;
...
@@ -21,10 +21,9 @@ import org.h2.message.Message;
*/
*/
public
class
FileSystemSplit
extends
FileSystem
{
public
class
FileSystemSplit
extends
FileSystem
{
static
final
String
PART_SUFFIX
=
".part"
;
private
static
final
String
PART_SUFFIX
=
".part"
;
private
static
final
FileSystemSplit
INSTANCE
=
new
FileSystemSplit
();
private
static
final
FileSystemSplit
INSTANCE
=
new
FileSystemSplit
();
private
long
defaultMaxSize
=
1L
<<
SysProperties
.
SPLIT_FILE_SIZE_SHIFT
;
long
defaultMaxSize
=
1L
<<
SysProperties
.
SPLIT_FILE_SIZE_SHIFT
;
public
static
FileSystemSplit
getInstance
()
{
public
static
FileSystemSplit
getInstance
()
{
return
INSTANCE
;
return
INSTANCE
;
...
@@ -288,6 +287,13 @@ public class FileSystemSplit extends FileSystem {
...
@@ -288,6 +287,13 @@ public class FileSystemSplit extends FileSystem {
return
fileName
;
return
fileName
;
}
}
/**
* Get the file name of a part file.
*
* @param fileName the file name
* @param id the part id
* @return the file name including the part id
*/
static
String
getFileName
(
String
fileName
,
int
id
)
{
static
String
getFileName
(
String
fileName
,
int
id
)
{
if
(
id
>
0
)
{
if
(
id
>
0
)
{
fileName
+=
"."
+
id
+
PART_SUFFIX
;
fileName
+=
"."
+
id
+
PART_SUFFIX
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论