提交 0f9001ea authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved fulltext docs

上级 c9a506a7
...@@ -48,6 +48,9 @@ org.h2.jdbcx<br /> ...@@ -48,6 +48,9 @@ org.h2.jdbcx<br />
<br /> <br />
<b>Tools</b><br /> <b>Tools</b><br />
org.h2.fulltext<br />
<a href="org/h2/fulltext/FullText.html" target="javadoc">FullText</a><br />
<a href="org/h2/fulltext/FullTextLucene.html" target="javadoc">FullTextLucene</a><br />
org.h2.tools<br /> org.h2.tools<br />
<a href="org/h2/tools/Backup.html" target="javadoc">Backup</a><br /> <a href="org/h2/tools/Backup.html" target="javadoc">Backup</a><br />
<a href="org/h2/tools/ChangeFileEncryption.html" target="javadoc">ChangeFileEncryption</a><br /> <a href="org/h2/tools/ChangeFileEncryption.html" target="javadoc">ChangeFileEncryption</a><br />
......
...@@ -44,6 +44,7 @@ import org.h2.value.DataType; ...@@ -44,6 +44,7 @@ import org.h2.value.DataType;
/** /**
* This class implements the native full text search. * This class implements the native full text search.
* Most methods can be called using SQL statements as well.
*/ */
public class FullText implements Trigger, CloseListener { public class FullText implements Trigger, CloseListener {
...@@ -474,6 +475,7 @@ public class FullText implements Trigger, CloseListener { ...@@ -474,6 +475,7 @@ public class FullText implements Trigger, CloseListener {
} }
/** /**
* INTERNAL.
* Convert the object to a string. * Convert the object to a string.
* *
* @param data the object * @param data the object
...@@ -838,10 +840,16 @@ public class FullText implements Trigger, CloseListener { ...@@ -838,10 +840,16 @@ public class FullText implements Trigger, CloseListener {
} }
} }
/**
* INTERNAL
*/
public void close() throws SQLException { public void close() throws SQLException {
setting.removeIndexInfo(index); setting.removeIndexInfo(index);
} }
/**
* INTERNAL
*/
public void remove() throws SQLException { public void remove() throws SQLException {
setting.removeIndexInfo(index); setting.removeIndexInfo(index);
} }
......
...@@ -45,6 +45,7 @@ import org.h2.util.StringUtils; ...@@ -45,6 +45,7 @@ import org.h2.util.StringUtils;
/** /**
* This class implements the full text search based on Apache Lucene. * This class implements the full text search based on Apache Lucene.
* Most methods can be called using SQL statements as well.
*/ */
public class FullTextLucene extends FullText public class FullTextLucene extends FullText
//## Java 1.4 begin ## //## Java 1.4 begin ##
...@@ -147,7 +148,7 @@ implements Trigger, CloseListener ...@@ -147,7 +148,7 @@ implements Trigger, CloseListener
* CALL FTL_INIT(); * CALL FTL_INIT();
* </pre> * </pre>
* *
* @param conn * @param conn the connection
*/ */
//## Java 1.4 begin ## //## Java 1.4 begin ##
public static void init(Connection conn) throws SQLException { public static void init(Connection conn) throws SQLException {
...@@ -574,7 +575,12 @@ implements Trigger, CloseListener ...@@ -574,7 +575,12 @@ implements Trigger, CloseListener
index[i] = found; index[i] = found;
} }
} }
//## Java 1.4 end ##
/**
* INTERNAL
*/
//## Java 1.4 begin ##
public void close() throws SQLException { public void close() throws SQLException {
try { try {
if (indexer != null) { if (indexer != null) {
...@@ -587,7 +593,12 @@ implements Trigger, CloseListener ...@@ -587,7 +593,12 @@ implements Trigger, CloseListener
throw convertException(e); throw convertException(e);
} }
} }
//## Java 1.4 end ##
/**
* INTERNAL
*/
//## Java 1.4 begin ##
public void remove() throws SQLException { public void remove() throws SQLException {
// ignore // ignore
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论