| Modifier and Type | Field and Description |
|---|---|
| private HashMap | |
| public static final int | CONTEXT
This token type means the possible choices of the item depend on the context. |
| public static final int | FUNCTION
The token type for a function name. |
| public static final int | KEYWORD
The token type for a keyword. |
| private DbSchema | |
| private DbTableOrView | |
| private DbTableOrView | |
| private static final int | |
| private final HashMap | next
The map of next tokens in the form type#tokenName token. |
| private String | query
The complete query string. |
| private String | queryUpper
The uppercase version of the query string. |
| private long | |
| private HashSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addAlias(String
the alias name alias, DbTableOrView the alias table table)Add an alias name and object |
| public void | |
| public HashMap | |
| public DbSchema | Returns: the last schema or nullGet the last matched schema if the last match was a schema. |
| public DbTableOrView | Returns: the last table or nullGet the last matched table if the last match was a table. |
| public DbTableOrView | |
| public HashMap | |
| public String | |
| public String | |
| public HashSet | |
| public void | setLastMatchedSchema(DbSchema
the last matched schema or null schema)Set the last matched schema if the last match was a schema, or null if it was not. |
| public void | setLastMatchedTable(DbTableOrView
the last matched table or null table)Set the last matched table if the last match was a table. |
| public void | |
| public void | |
| public void |
| aliases | back to summary |
|---|---|
| private HashMap<String, DbTableOrView> aliases | |
| CONTEXT | back to summary |
|---|---|
| public static final int CONTEXT This token type means the possible choices of the item depend on the context. For example the item represents a table name of the current database. | |
| FUNCTION | back to summary |
|---|---|
| public static final int FUNCTION The token type for a function name. | |
| KEYWORD | back to summary |
|---|---|
| public static final int KEYWORD The token type for a keyword. | |
| lastMatchedSchema | back to summary |
|---|---|
| private DbSchema lastMatchedSchema | |
| lastMatchedTable | back to summary |
|---|---|
| private DbTableOrView lastMatchedTable | |
| lastTable | back to summary |
|---|---|
| private DbTableOrView lastTable | |
| MAX_PROCESSING_TIME | back to summary |
|---|---|
| private static final int MAX_PROCESSING_TIME | |
| next | back to summary |
|---|---|
| private final HashMap<String, String> next The map of next tokens in the form type#tokenName token. | |
| query | back to summary |
|---|---|
| private String query The complete query string. | |
| queryUpper | back to summary |
|---|---|
| private String queryUpper The uppercase version of the query string. | |
| stopAtNs | back to summary |
|---|---|
| private long stopAtNs | |
| tables | back to summary |
|---|---|
| private HashSet<DbTableOrView> tables | |
| Sentence | back to summary |
|---|---|
| public Sentence() | |
| add | back to summary |
|---|---|
| public void add(String n, String string, int type) Add a word to the set of next tokens. | |
| addAlias | back to summary |
|---|---|
| public void addAlias(String alias, DbTableOrView table) Add an alias name and object
| |
| addTable | back to summary |
|---|---|
| public void addTable(DbTableOrView table) Add a table.
| |
| getAliases | back to summary |
|---|---|
| public HashMap Get the alias map.
| |
| getLastMatchedSchema | back to summary |
|---|---|
| public DbSchema getLastMatchedSchema() Get the last matched schema if the last match was a schema.
| |
| getLastMatchedTable | back to summary |
|---|---|
| public DbTableOrView getLastMatchedTable() Get the last matched table if the last match was a table.
| |
| getLastTable | back to summary |
|---|---|
| public DbTableOrView getLastTable() Get the last added table.
| |
| getNext | back to summary |
|---|---|
| public HashMap Get the map of next tokens. | |
| getQuery | back to summary |
|---|---|
| public String getQuery() Get the query string.
| |
| getQueryUpper | back to summary |
|---|---|
| public String getQueryUpper() Get the uppercase version of the query string.
| |
| getTables | back to summary |
|---|---|
| public HashSet Get the set of tables.
| |
| setLastMatchedSchema | back to summary |
|---|---|
| public void setLastMatchedSchema(DbSchema schema) Set the last matched schema if the last match was a schema, or null if it was not.
| |
| setLastMatchedTable | back to summary |
|---|---|
| public void setLastMatchedTable(DbTableOrView table) Set the last matched table if the last match was a table.
| |
| setQuery | back to summary |
|---|---|
| public void setQuery(String query) Set the query string.
| |
| start | back to summary |
|---|---|
| public void start() Start the timer to make sure processing doesn't take too long. | |
| stopIfRequired | back to summary |
|---|---|
| public void stopIfRequired() Check if it's time to stop processing. Processing auto-complete shouldn't take more than a few milliseconds. If processing is stopped, this methods throws an IllegalStateException | |