Tabnine Logo
SqlQuery.setSql
Code IndexAdd Tabnine to your IDE (free)

How to use
setSql
method
in
org.apache.ignite.cache.query.SqlQuery

Best Java code snippets using org.apache.ignite.cache.query.SqlQuery.setSql (Showing top 5 results out of 315)

origin: apache/ignite

/**
 * Constructs query for the given type name and SQL query.
 *
 * @param type Type.
 * @param sql SQL Query.
 */
public SqlQuery(String type, String sql) {
  setType(type);
  setSql(sql);
}
origin: apache/ignite

/**
 * Constructs query for the given type and SQL query.
 *
 * @param type Type.
 * @param sql SQL Query.
 */
public SqlQuery(Class<?> type, String sql) {
  setType(type);
  setSql(sql);
}
origin: apache/ignite

  /** {@inheritDoc} */
  @Override public List<Cache.Entry<Integer, GridCacheQueryTestValue>> call() throws Exception {
    IgniteCache<Integer, GridCacheQueryTestValue> c = ignite.cache(CACHE_NAME);
    String sqlStr = "FROM GridCacheQueryTestValue WHERE fieldname = ?";
    SqlQuery<Integer, GridCacheQueryTestValue> sql = new SqlQuery<>(GridCacheQueryTestValue.class, sqlStr);
    sql.setArgs("C");
    return c.query(sql.setSql(sqlStr)).getAll();
  }
}
origin: org.apache.ignite/ignite-core

/**
 * Constructs query for the given type and SQL query.
 *
 * @param type Type.
 * @param sql SQL Query.
 */
public SqlQuery(Class<?> type, String sql) {
  setType(type);
  setSql(sql);
}
origin: org.apache.ignite/ignite-core

/**
 * Constructs query for the given type name and SQL query.
 *
 * @param type Type.
 * @param sql SQL Query.
 */
public SqlQuery(String type, String sql) {
  setType(type);
  setSql(sql);
}
org.apache.ignite.cache.querySqlQuerysetSql

Javadoc

Sets SQL clause.

Popular methods of SqlQuery

  • <init>
    Constructs query for the given type name and SQL query.
  • setArgs
    Sets SQL arguments.
  • getArgs
    Gets SQL arguments.
  • getPageSize
  • getPartitions
    Gets partitions for query, in ascending order.
  • getSql
    Gets SQL clause.
  • getTimeout
    Gets the query execution timeout in milliseconds.
  • getType
    Gets type for query.
  • isDistributedJoins
    Check if distributed joins are enabled for this query.
  • isLocal
  • isReplicatedOnly
    Check is the query contains only replicated tables.
  • setDistributedJoins
    Specify if distributed joins are enabled for this query. When disabled, join results will only conta
  • isReplicatedOnly,
  • setDistributedJoins,
  • setLocal,
  • setPageSize,
  • setReplicatedOnly,
  • getAlias,
  • isDataPageScanEnabled,
  • prepare,
  • setAlias

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Path (java.nio.file)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JComboBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now