public class FullTextSettings extends Object
Modifier and Type | Field and Description |
---|---|
protected SoftHashMap<Connection,SoftHashMap<String,PreparedStatement>> |
cache
The prepared statement cache.
|
protected HashSet<String> |
ignoreList
The set of words not to index (stop words).
|
protected HashMap<Integer,IndexInfo> |
indexes
The set of indexes in this database.
|
protected boolean |
initialized
Whether this instance has been initialized.
|
protected static HashMap<String,FullTextSettings> |
SETTINGS
The settings of open indexes.
|
protected String |
whitespaceChars
The whitespace characters.
|
protected HashMap<String,Integer> |
words
The set of words / terms.
|
Modifier | Constructor and Description |
---|---|
protected |
FullTextSettings()
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addIndexInfo(IndexInfo index)
Add an index.
|
protected static void |
closeAll()
Close all fulltext settings, freeing up memory.
|
protected String |
convertWord(String word)
Convert a word to uppercase.
|
protected HashSet<String> |
getIgnoreList()
Get the ignore list.
|
protected IndexInfo |
getIndexInfo(int indexId)
Get the index information for the given index id.
|
protected static String |
getIndexPath(Connection conn)
Get the file system path.
|
protected static FullTextSettings |
getInstance(Connection conn)
Get or create the fulltext settings for this database.
|
protected String |
getWhitespaceChars() |
protected HashMap<String,Integer> |
getWordList()
Get the word list.
|
protected boolean |
isInitialized()
Get the initialized flag.
|
protected PreparedStatement |
prepare(Connection conn,
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.
|
protected void |
setWhitespaceChars(String whitespaceChars) |
protected static final HashMap<String,FullTextSettings> SETTINGS
protected boolean initialized
protected SoftHashMap<Connection,SoftHashMap<String,PreparedStatement>> cache
protected String whitespaceChars
protected HashSet<String> getIgnoreList()
protected HashMap<String,Integer> getWordList()
protected IndexInfo getIndexInfo(int indexId)
indexId
- the index idprotected void addIndexInfo(IndexInfo index)
index
- the indexprotected String convertWord(String word)
word
- the word to convert and checkprotected static FullTextSettings getInstance(Connection conn) throws SQLException
conn
- the connectionSQLException
protected static String getIndexPath(Connection conn) throws SQLException
conn
- the connectionSQLException
protected PreparedStatement prepare(Connection conn, String sql) throws SQLException
conn
- the connectionsql
- the statementSQLException
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()
protected void setWhitespaceChars(String whitespaceChars)
protected String getWhitespaceChars()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.