Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
1284d1b5
提交
1284d1b5
authored
2月 24, 2017
作者:
Thomas Mueller Graf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Javadocs
上级
97b7586c
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
70 行增加
和
10 行删除
+70
-10
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+2
-0
TraceObject.java
h2/src/main/org/h2/message/TraceObject.java
+1
-0
MVStoreTool.java
h2/src/main/org/h2/mvstore/MVStoreTool.java
+1
-1
FilePathMem.java
h2/src/main/org/h2/store/fs/FilePathMem.java
+15
-1
FilePathNioMem.java
h2/src/main/org/h2/store/fs/FilePathNioMem.java
+7
-0
IndexHints.java
h2/src/main/org/h2/table/IndexHints.java
+12
-0
StringUtils.java
h2/src/main/org/h2/util/StringUtils.java
+5
-5
ThreadDeadlockDetector.java
h2/src/main/org/h2/util/ThreadDeadlockDetector.java
+5
-0
TestUsingIndex.java
h2/src/test/org/h2/test/db/TestUsingIndex.java
+5
-0
RecoverLobTest.java
h2/src/test/org/h2/test/recover/RecoverLobTest.java
+6
-1
Build.java
h2/src/tools/org/h2/build/Build.java
+1
-0
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+7
-1
ArchiveTool.java
h2/src/tools/org/h2/dev/fs/ArchiveTool.java
+2
-0
ThreadDumpFilter.java
h2/src/tools/org/h2/dev/util/ThreadDumpFilter.java
+1
-1
没有找到文件。
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
1284d1b5
...
...
@@ -1637,6 +1637,8 @@ public class JdbcConnection extends TraceObject implements Connection,
/**
* Create a new Array object.
*
* @param typeName the type name
* @param elements the values
* @return the array
*/
@Override
...
...
h2/src/main/org/h2/message/TraceObject.java
浏览文件 @
1284d1b5
...
...
@@ -367,6 +367,7 @@ public class TraceObject {
* Get a SQL exception meaning this feature is not supported.
*
* @param message the message
* @return the SQL exception
*/
protected
SQLException
unsupported
(
String
message
)
{
try
{
...
...
h2/src/main/org/h2/mvstore/MVStoreTool.java
浏览文件 @
1284d1b5
...
...
@@ -34,7 +34,7 @@ public class MVStoreTool {
/**
* Runs this tool.
* Options are case sensitive. Supported options are:
* <table>
* <table
summary="command line options"
>
* <tr><td>[-dump <fileName>]</td>
* <td>Dump the contends of the file</td></tr>
* <tr><td>[-info <fileName>]</td>
...
...
h2/src/main/org/h2/store/fs/FilePathMem.java
浏览文件 @
1284d1b5
...
...
@@ -458,6 +458,12 @@ class FileMemData {
lastModified
=
System
.
currentTimeMillis
();
}
/**
* Get the page if it exists.
*
* @param page the page id
* @return the byte array, or null
*/
byte
[]
getPage
(
int
page
)
{
AtomicReference
<
byte
[]>[]
b
=
buffers
;
if
(
page
>=
b
.
length
)
{
...
...
@@ -466,6 +472,15 @@ class FileMemData {
return
b
[
page
].
get
();
}
/**
* Set the page data.
*
* @param page the page id
* @param oldData the old data
* @param newData the new data
* @param force whether the data should be overwritten even if the old data
* doesn't match
*/
void
setPage
(
int
page
,
byte
[]
oldData
,
byte
[]
newData
,
boolean
force
)
{
AtomicReference
<
byte
[]>[]
b
=
buffers
;
if
(
page
>=
b
.
length
)
{
...
...
@@ -607,7 +622,6 @@ class FileMemData {
* Compress the data in a byte array.
*
* @param page which page to compress
* @param old the page array
*/
void
compress
(
int
page
)
{
byte
[]
old
=
getPage
(
page
);
...
...
h2/src/main/org/h2/store/fs/FilePathNioMem.java
浏览文件 @
1284d1b5
...
...
@@ -33,6 +33,10 @@ public class FilePathNioMem extends FilePath {
private
static
final
TreeMap
<
String
,
FileNioMemData
>
MEMORY_FILES
=
new
TreeMap
<
String
,
FileNioMemData
>();
/**
* The percentage of uncompressed (cached) entries.
*/
float
compressLaterCachePercent
=
1
;
@Override
...
...
@@ -432,6 +436,9 @@ class FileNioMemData {
}
};
/**
* The hash code of the name.
*/
final
int
nameHashCode
;
private
final
CompressLaterCache
<
CompressItem
,
CompressItem
>
compressLaterCache
=
...
...
h2/src/main/org/h2/table/IndexHints.java
浏览文件 @
1284d1b5
...
...
@@ -26,6 +26,12 @@ public final class IndexHints {
this
.
allowedIndexes
=
allowedIndexes
;
}
/**
* Create an index hint object.
*
* @param allowedIndexes the set of allowed indexes
* @return the hint object
*/
public
static
IndexHints
createUseIndexHints
(
LinkedHashSet
<
String
>
allowedIndexes
)
{
return
new
IndexHints
(
allowedIndexes
);
}
...
...
@@ -39,6 +45,12 @@ public final class IndexHints {
return
"IndexHints{allowedIndexes="
+
allowedIndexes
+
'}'
;
}
/**
* Allow an index to be used.
*
* @param index the index
* @return whether it was already allowed
*/
public
boolean
allowIndex
(
Index
index
)
{
return
allowedIndexes
.
contains
(
index
.
getName
());
}
...
...
h2/src/main/org/h2/util/StringUtils.java
浏览文件 @
1284d1b5
...
...
@@ -613,7 +613,7 @@ public class StringUtils {
* The data is indented with 4 spaces if it contains a newline character.
*
* @param data the comment text
* @return
<!-- data -->
* @return
<!-- data -->
*/
public
static
String
xmlComment
(
String
data
)
{
int
idx
=
0
;
...
...
@@ -634,10 +634,10 @@ public class StringUtils {
/**
* Converts the data to a CDATA element.
* If the data contains ']]
>
', it is escaped as a text element.
* If the data contains ']]
>
', it is escaped as a text element.
*
* @param data the text data
* @return
<![CDATA[data]]>
* @return
<![CDATA[data]]>
*/
public
static
String
xmlCData
(
String
data
)
{
if
(
data
.
contains
(
"]]>"
))
{
...
...
@@ -649,8 +649,8 @@ public class StringUtils {
}
/**
* Returns
<?xml version="1.0"?>
* @return
<?xml version="1.0"?>
* Returns
<?xml version="1.0"?>
* @return
<?xml version="1.0"?>
*/
public
static
String
xmlStartDoc
()
{
return
"<?xml version=\"1.0\"?>\n"
;
...
...
h2/src/main/org/h2/util/ThreadDeadlockDetector.java
浏览文件 @
1284d1b5
...
...
@@ -68,6 +68,11 @@ public class ThreadDeadlockDetector {
threadBean
,
deadlockedThreadIds
);
}
/**
* Dump all deadlocks (if any).
*
* @param msg the message
*/
public
static
void
dumpAllThreadsAndLocks
(
String
msg
)
{
final
ThreadMXBean
threadBean
=
ManagementFactory
.
getThreadMXBean
();
final
long
[]
allThreadIds
=
threadBean
.
getAllThreadIds
();
...
...
h2/src/test/org/h2/test/db/TestUsingIndex.java
浏览文件 @
1284d1b5
...
...
@@ -22,6 +22,11 @@ public class TestUsingIndex extends TestBase {
private
Connection
conn
;
private
Statement
stat
;
/**
* Run just this test.
*
* @param a ignored
*/
public
static
void
main
(
String
...
a
)
throws
Exception
{
TestBase
.
createCaller
().
init
().
test
();
}
...
...
h2/src/test/org/h2/test/recover/RecoverLobTest.java
浏览文件 @
1284d1b5
...
...
@@ -12,6 +12,11 @@ import org.h2.tools.Recover;
*/
public
class
RecoverLobTest
extends
TestBase
{
/**
* Run just this test.
*
* @param a ignored
*/
public
static
void
main
(
String
...
a
)
throws
Exception
{
TestBase
.
createCaller
().
init
().
test
();
}
...
...
@@ -31,7 +36,7 @@ public class RecoverLobTest extends TestBase {
testRecoverClob
();
}
p
ublic
void
testRecoverClob
()
throws
Exception
{
p
rivate
void
testRecoverClob
()
throws
Exception
{
DeleteDbFiles
.
execute
(
getBaseDir
(),
"recovery"
,
true
);
Connection
conn
=
getConnection
(
"recovery"
);
Statement
stat
=
conn
.
createStatement
();
...
...
h2/src/tools/org/h2/build/Build.java
浏览文件 @
1284d1b5
...
...
@@ -612,6 +612,7 @@ public class Build extends BuildBase {
javadoc
(
"-sourcepath"
,
"src/main"
+
File
.
pathSeparator
+
"src/test"
+
File
.
pathSeparator
+
"src/tools"
,
"-Xdoclint:none"
,
"-noindex"
,
"-tag"
,
"h2.resource"
,
"-d"
,
"docs/javadocImpl2"
,
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
1284d1b5
...
...
@@ -728,4 +728,10 @@ experiment throughout staging booth akkuzin observed maxinplace russian
ema sch bodewig forbid compat calc midway prohibit measuring playing kostya
pstmt rosenbaum pretending inverse safer lived blo sane othe multiplicative
introduces bcd nave picking templating clamp temporal berlin intermittently
pstat props bitget travis
\ No newline at end of file
pstat props bitget travis
toto anatolii callables spurious disregard uniqueidentifier promoted oom doesnt
optimisations roughly contractid succeeding tran fixme iters ovain orgid chosen
arbonaut exposing obscure determined turkey buildings indexhints acct
choosing optimise arte preparator katzyn bla jenkins tot artes pgserver npe
suffers closeablem mni significance vise identiy vitalus aka ilike uppercasing reentrant
h2/src/tools/org/h2/dev/fs/ArchiveTool.java
浏览文件 @
1284d1b5
...
...
@@ -1096,6 +1096,8 @@ public class ArchiveTool {
/**
* Print the progress.
*
* @param offset the offset since the last operation
*/
void
printProgress
(
long
offset
)
{
current
+=
offset
;
...
...
h2/src/tools/org/h2/dev/util/ThreadDumpFilter.java
浏览文件 @
1284d1b5
...
...
@@ -18,7 +18,7 @@ import java.io.PrintWriter;
public
class
ThreadDumpFilter
{
/**
* Usage: java ThreadDumpFilter
<log.txt >
threadDump.txt
* Usage: java ThreadDumpFilter
<log.txt >
threadDump.txt
*
* @param a the file name
*/
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论