|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.fulltext.FullTextSettings
public class FullTextSettings
The global settings of a full text search.
Field Summary | |
---|---|
protected SoftHashMap<java.sql.Connection,SoftHashMap<java.lang.String,java.sql.PreparedStatement>> |
cache
The prepared statement cache. |
protected java.util.HashSet<java.lang.String> |
ignoreList
The set of words not to index (stop words). |
protected java.util.HashMap<java.lang.Integer,IndexInfo> |
indexes
The set of indexes in this database. |
protected boolean |
initialized
Whether this instance has been initialized. |
protected static java.util.HashMap<java.lang.String,FullTextSettings> |
SETTINGS
The settings of open indexes. |
protected java.util.HashMap<java.lang.String,java.lang.Integer> |
words
The set of words / terms. |
Constructor Summary | |
---|---|
protected |
FullTextSettings()
Create a new instance. |
Method Summary | |
---|---|
protected void |
addIndexInfo(IndexInfo index)
Add an index. |
protected static void |
closeAll()
Close all fulltext settings, freeing up memory. |
protected java.lang.String |
convertWord(java.lang.String word)
Convert a word to uppercase. |
protected java.util.HashSet<java.lang.String> |
getIgnoreList()
Get the ignore list. |
protected IndexInfo |
getIndexInfo(int indexId)
Get the index information for the given index id. |
protected static java.lang.String |
getIndexPath(java.sql.Connection conn)
Get the file system path. |
protected static FullTextSettings |
getInstance(java.sql.Connection conn)
Get or create the fulltext settings for this database. |
protected java.util.HashMap<java.lang.String,java.lang.Integer> |
getWordList()
Get the word list. |
protected boolean |
isInitialized()
Get the initialized flag. |
protected java.sql.PreparedStatement |
prepare(java.sql.Connection conn,
java.lang.String sql)
Prepare a statement. |
protected void |
removeAllIndexes()
Remove all indexes from the settings. |
protected void |
removeIndexInfo(IndexInfo index)
Remove an index from the settings. |
protected void |
setInitialized(boolean b)
Set the initialized flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.HashMap<java.lang.String,FullTextSettings> SETTINGS
protected boolean initialized
protected java.util.HashSet<java.lang.String> ignoreList
protected java.util.HashMap<java.lang.String,java.lang.Integer> words
protected java.util.HashMap<java.lang.Integer,IndexInfo> indexes
protected SoftHashMap<java.sql.Connection,SoftHashMap<java.lang.String,java.sql.PreparedStatement>> cache
Constructor Detail |
---|
protected FullTextSettings()
Method Detail |
---|
protected java.util.HashSet<java.lang.String> getIgnoreList()
protected java.util.HashMap<java.lang.String,java.lang.Integer> getWordList()
protected IndexInfo getIndexInfo(int indexId)
indexId
- the index id
protected void addIndexInfo(IndexInfo index)
index
- the indexprotected java.lang.String convertWord(java.lang.String word)
word
- the word to convert and check
protected static FullTextSettings getInstance(java.sql.Connection conn) throws java.sql.SQLException
conn
- the connection
java.sql.SQLException
protected static java.lang.String getIndexPath(java.sql.Connection conn) throws java.sql.SQLException
conn
- the connection
java.sql.SQLException
protected java.sql.PreparedStatement prepare(java.sql.Connection conn, java.lang.String sql) throws java.sql.SQLException
conn
- the connectionsql
- the statement
java.sql.SQLException
protected void removeAllIndexes()
protected void removeIndexInfo(IndexInfo index)
index
- the index to removeprotected void setInitialized(boolean b)
b
- the new valueprotected boolean isInitialized()
protected static void closeAll()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |