public class SqlConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DFLT_LONG_QRY_WARN_TIMEOUT
Default timeout after which long query warning will be printed.
|
static long |
DFLT_QRY_TIMEOUT
Default query timeout.
|
static int |
DFLT_SQL_QUERY_HISTORY_SIZE
Default SQL query history size.
|
| Constructor and Description |
|---|
SqlConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
long |
getDefaultQueryTimeout()
Defines the default query timeout.
|
long |
getLongQueryWarningTimeout()
Gets timeout in milliseconds after which long query warning will be printed.
|
int |
getSqlQueryHistorySize()
Number of SQL query history elements to keep in memory.
|
String[] |
getSqlSchemas()
Gets SQL schemas to be created on node startup.
|
boolean |
isValidationEnabled()
Is key & value validation enabled.
|
SqlConfiguration |
setDefaultQueryTimeout(long dfltQryTimeout)
Sets timeout in milliseconds for default query timeout.
|
SqlConfiguration |
setLongQueryWarningTimeout(long longQryWarnTimeout)
Sets timeout in milliseconds after which long query warning will be printed.
|
SqlConfiguration |
setSqlQueryHistorySize(int size)
Sets number of SQL query history elements kept in memory.
|
SqlConfiguration |
setSqlSchemas(String... sqlSchemas)
Sets SQL schemas to be created on node startup.
|
SqlConfiguration |
setValidationEnabled(boolean validationEnabled)
Enable/disable key & value validation.
|
String |
toString() |
public static final int DFLT_SQL_QUERY_HISTORY_SIZE
public static final long DFLT_QRY_TIMEOUT
public static final long DFLT_LONG_QRY_WARN_TIMEOUT
public long getDefaultQueryTimeout()
DFLT_QRY_TIMEOUT.
0 means there is no timeout (this is a default value)public SqlConfiguration setDefaultQueryTimeout(long dfltQryTimeout)
0 means there is no timeout (this is a default value)dfltQryTimeout - Timeout in milliseconds.this for chaining.public int getSqlQueryHistorySize()
DFLT_SQL_QUERY_HISTORY_SIZE is used. If provided value is less or equals 0, then gathering SQL query history
will be switched off.public SqlConfiguration setSqlQueryHistorySize(int size)
DFLT_SQL_QUERY_HISTORY_SIZE.size - Number of SQL query history elements kept in memory.this for chaining.public String[] getSqlSchemas()
See setSqlSchemas(String...) for more information.
public SqlConfiguration setSqlSchemas(String... sqlSchemas)
By default schema names are case-insensitive, i.e. my_schema and My_Schema represents the same
object. Use quotes to enforce case sensitivity (e.g. "My_Schema").
Property is ignored if ignite-indexing module is not in classpath.
sqlSchemas - SQL schemas to be created on node startup.this for chaining.public long getLongQueryWarningTimeout()
public SqlConfiguration setLongQueryWarningTimeout(long longQryWarnTimeout)
longQryWarnTimeout - Timeout in milliseconds.this for chaining.public boolean isValidationEnabled()
true When key & value shall be validated against SQL schema.public SqlConfiguration setValidationEnabled(boolean validationEnabled)
validationEnabled - true When key & value shall be validated against SQL schema.
Default value is false.this for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020