Java Code Examples for org.apache.ignite.cache.query.SqlFieldsQuery#getSql()
The following examples show how to use
org.apache.ignite.cache.query.SqlFieldsQuery#getSql() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QueryParser.java From ignite with Apache License 2.0 | 6 votes |
/** * Prepare plan key. * * @param schemaName Schema name. * @param qry Query. * @return Plan key. */ private static QueryDescriptor queryDescriptor(String schemaName, SqlFieldsQuery qry) { boolean skipReducerOnUpdate = false; boolean batched = false; if (qry instanceof SqlFieldsQueryEx) { SqlFieldsQueryEx qry0 = (SqlFieldsQueryEx)qry; skipReducerOnUpdate = !qry.isLocal() && qry0.isSkipReducerOnUpdate(); batched = qry0.isBatched(); } return new QueryDescriptor( schemaName, qry.getSql(), qry.isCollocated(), qry.isDistributedJoins(), qry.isEnforceJoinOrder(), qry.isLocal(), skipReducerOnUpdate, batched ); }
Example 2
Source File: JdbcBatchUpdateTask.java From ignite with Apache License 2.0 | 2 votes |
/** * Formats error message with query details. * * @param msg Error message. * @param qry Query. * @return Result. */ private String getError(String msg, SqlFieldsQuery qry) { return msg + " [qry='" + qry.getSql() + "', params=" + Arrays.deepToString(qry.getArgs()) + ']'; }