| Modifier and Type | Field and Description |
|---|---|
| private final WeakHashMap | cache
The prepared statement cache. |
| private final HashSet | ignoreList
The set of words not to index (stop words). |
| private final ConcurrentHashMap | indexes
The set of indexes in this database. |
| private boolean | initialized
Whether this instance has been initialized. |
| private static final HashMap | SETTINGS
The settings of open indexes. |
| private String | whitespaceChars
The whitespace characters. |
| private final HashMap | words
The set of words / terms. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| pack-priv static void | |
| pack-priv String | Returns: the uppercase version of the word or nullthe word to convert and check word)Convert a word to uppercase. |
| pack-priv IndexInfo | Returns: the index infothe index id indexId)Get the index information for the given index id. |
| private static String | |
| pack-priv static FullTextSettings | Returns: the settingsthe connection conn)Get or create the fulltext settings for this database. |
| pack-priv String | |
| public Integer | |
| pack-priv boolean | |
| private static String | |
| pack-priv synchronized PreparedStatement | Returns: the prepared statementthe connection conn, String the statement sql)Prepare a statement. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| cache | back to summary |
|---|---|
| private final WeakHashMap<Connection, SoftValuesHashMap<String, PreparedStatement>> cache The prepared statement cache. | |
| ignoreList | back to summary |
|---|---|
| private final HashSet<String> ignoreList The set of words not to index (stop words). | |
| indexes | back to summary |
|---|---|
| private final ConcurrentHashMap<Integer, IndexInfo> indexes The set of indexes in this database. | |
| initialized | back to summary |
|---|---|
| private boolean initialized Whether this instance has been initialized. | |
| SETTINGS | back to summary |
|---|---|
| private static final HashMap<String, FullTextSettings> SETTINGS The settings of open indexes. | |
| whitespaceChars | back to summary |
|---|---|
| private String whitespaceChars The whitespace characters. | |
| words | back to summary |
|---|---|
| private final HashMap<String, Integer> words The set of words / terms. | |
| FullTextSettings | back to summary |
|---|---|
| private FullTextSettings() Create a new instance. | |
| addIgnored | back to summary |
|---|---|
| public void addIgnored(Iterable<String> words) Amend set of ignored words | |
| addIndexInfo | back to summary |
|---|---|
| pack-priv void addIndexInfo(IndexInfo index) Add an index.
| |
| addWord | back to summary |
|---|---|
| public void addWord(String word, Integer id) Register searchable word | |
| clearIgnored | back to summary |
|---|---|
| public void clearIgnored() Clear set of ignored words | |
| clearWordList | back to summary |
|---|---|
| public void clearWordList() Clear set of searchable words | |
| closeAll | back to summary |
|---|---|
| pack-priv static void closeAll() Close all fulltext settings, freeing up memory. | |
| convertWord | back to summary |
|---|---|
| pack-priv String convertWord(String word) Convert a word to uppercase. This method returns null if the word is in the ignore list. | |
| getIndexInfo | back to summary |
|---|---|
| pack-priv IndexInfo getIndexInfo(int indexId) Get the index information for the given index id.
| |
| getIndexPath | back to summary |
|---|---|
| private static String getIndexPath(Connection conn) throws SQLException Get the file system path.
| |
| getInstance | back to summary |
|---|---|
| pack-priv static FullTextSettings getInstance(Connection conn) throws SQLException Get or create the fulltext settings for this database.
| |
| getWhitespaceChars | back to summary |
|---|---|
| pack-priv String getWhitespaceChars() | |
| getWordId | back to summary |
|---|---|
| public Integer getWordId(String word) Get id for a searchable word | |
| isInitialized | back to summary |
|---|---|
| pack-priv boolean isInitialized() Get the initialized flag.
| |
| normalizeWord | back to summary |
|---|---|
| private static String normalizeWord(String word) | |
| prepare | back to summary |
|---|---|
| pack-priv synchronized PreparedStatement prepare(Connection conn, String sql) throws SQLException Prepare a statement. The statement is cached in a soft reference cache.
| |
| removeAllIndexes | back to summary |
|---|---|
| pack-priv void removeAllIndexes() Remove all indexes from the settings. | |
| removeIndexInfo | back to summary |
|---|---|
| pack-priv void removeIndexInfo(IndexInfo index) Remove an index from the settings.
| |
| setInitialized | back to summary |
|---|---|
| pack-priv void setInitialized(boolean b) Set the initialized flag.
| |
| setWhitespaceChars | back to summary |
|---|---|
| pack-priv void setWhitespaceChars(String whitespaceChars) | |