FullTextSettings

The global settings of a full text search.

Methods
static void closeAll()
Close all fulltext settings, freeing up memory.
static void closeAll()
Close all fulltext settings, freeing up memory.
static String getIndexPath(Connection conn)
Get the file system path.
static String getIndexPath(Connection conn) throws SQLException
Get the file system path.
Parameters:
conn - the connection
Returns:
the file system path
static FullTextSettings getInstance(Connection conn)
Get or create the fulltext settings for this database.
static FullTextSettings getInstance(Connection conn) throws SQLException
Get or create the fulltext settings for this database.
Parameters:
conn - the connection
Returns:
the settings
FullTextSettings()
Create a new instance.
FullTextSettings()
Create a new instance.
void addIndexInfo(IndexInfo index)
Add an index.
void addIndexInfo(IndexInfo index)
Add an index.
Parameters:
index - the index
String convertWord(String word)
Convert a word to uppercase.
String convertWord(String word)
Convert a word to uppercase. This method returns null if the word is in the ignore list.
Parameters:
word - the word to convert and check
Returns:
the uppercase version of the word or null
HashSet getIgnoreList()
Get the ignore list.
HashSet getIgnoreList()
Get the ignore list.
Returns:
the ignore list
IndexInfo getIndexInfo(int indexId)
Get the index information for the given index id.
IndexInfo getIndexInfo(int indexId)
Get the index information for the given index id.
Parameters:
indexId - the index id
Returns:
the index info
HashMap getWordList()
Get the word list.
HashMap getWordList()
Get the word list.
Returns:
the word list
boolean isInitialized()
Get the initialized flag.
boolean isInitialized()
Get the initialized flag.
Returns:
whether this instance is initialized
PreparedStatement prepare(Connection conn, String sql)
Prepare a statement.
PreparedStatement prepare(Connection conn, String sql) throws SQLException
Prepare a statement. The statement is cached in a soft reference cache.
Parameters:
conn - the connection
sql - the statement
Returns:
the prepared statement
void removeAllIndexes()
Remove all indexes from the settings.
void removeAllIndexes()
Remove all indexes from the settings.
void removeIndexInfo(IndexInfo index)
Remove an index from the settings.
void removeIndexInfo(IndexInfo index)
Remove an index from the settings.
Parameters:
index - the index to remove
void setInitialized(boolean b)
Set the initialized flag.
void setInitialized(boolean b)
Set the initialized flag.
Parameters:
b - the new value

Fields
static HashMap SETTINGS
static SoftHashMap cache
static HashSet ignoreList
static HashMap indexes
static boolean initialized
static HashMap words

SETTINGS

The settings of open indexes.

cache

The prepared statement cache.

ignoreList

The set of words not to index (stop words).

indexes

The set of indexes in this database.

initialized

Whether this instance has been initialized.

words

The set of words / terms.