Class QueryConfiguration
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.cache.QueryConfiguration
-
- All Implemented Interfaces:
Externalizable,Serializable
public class QueryConfiguration extends VisorDataTransferObject
Data transfer object for cache query configuration data.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryConfiguration()Default constructor.QueryConfiguration(CacheConfiguration ccfg)Create data transfer object with cache query configuration data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getIndexedTypes()longgetLongQueryWarningTimeout()List<String>getSqlFunctionClasses()StringgetSqlSchema()booleanisSqlEscapeAll()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
QueryConfiguration
public QueryConfiguration()
Default constructor.
-
QueryConfiguration
public QueryConfiguration(CacheConfiguration ccfg)
Create data transfer object with cache query configuration data.- Parameters:
ccfg- Cache configuration.
-
-
Method Detail
-
getSqlFunctionClasses
public List<String> getSqlFunctionClasses()
- Returns:
- Classes names with SQL functions.
-
getLongQueryWarningTimeout
public long getLongQueryWarningTimeout()
- Returns:
- Timeout in milliseconds after which long query warning will be printed.
-
isSqlEscapeAll
public boolean isSqlEscapeAll()
- Returns:
trueif SQL engine generate SQL statements with escaped names.
-
getIndexedTypes
public List<String> getIndexedTypes()
- Returns:
- Array of key and value classes names to be indexed.
-
getSqlSchema
public String getSqlSchema()
- Returns:
- Schema name, which is used by SQL engine for SQL statements generation.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classVisorDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-