Tabnine Logo
Delete$Options
Code IndexAdd Tabnine to your IDE (free)

How to use
Delete$Options
in
com.datastax.driver.core.querybuilder

Best Java code snippets using com.datastax.driver.core.querybuilder.Delete$Options (Showing top 19 results out of 315)

origin: io.prestosql.cassandra/cassandra-driver

/**
 * Adds the provided option.
 *
 * @param using a DELETE option.
 * @return this {@code Options} object.
 */
public Options and(Using using) {
  usings.add(using);
  checkForBindMarkers(using);
  return this;
}
origin: com.datastax.cassandra/cassandra-driver-core

delete = delete("a", "b", "c").from("foo").using(timestamp(0)).where(eq("k", 1));
assertEquals(delete.toString(), query);
delete = delete().all().from("foo").using(timestamp(1240003134L)).where(eq("k", "value"));
assertEquals(delete.toString(), query);
delete = delete().from("foo").using(timestamp(1240003134L)).where(eq("k", "value"));
assertEquals(delete.toString(), query);
origin: com.datastax.dse/dse-java-driver-core

delete = delete("a", "b", "c").from("baz", "foo").using(timestamp(0)).where(eq("k", 1));
assertEquals(delete.toString(), query);
assertThat(delete.getKeyspace()).isEqualTo("baz"); // keyspace set since provided.
delete = delete().all().from("foo").using(timestamp(1240003134L)).where(eq("k", "value"));
assertEquals(delete.toString(), query);
delete = delete().from("foo").using(timestamp(1240003134L)).where(eq("k", "value"));
assertEquals(delete.toString(), query);
origin: io.prestosql.cassandra/cassandra-driver

Delete(String keyspace,
    String table,
    List<Object> routingKeyValues,
    List<ColumnMetadata> partitionKey,
    List<Selector> columns) {
  super(keyspace, partitionKey, routingKeyValues);
  this.table = table;
  this.columns = columns;
  this.where = new Where(this);
  this.usings = new Options(this);
  this.conditions = new Conditions(this);
  // This is for JAVA-1089, if the query deletes an element in a list, the statement should be non-idempotent.
  if (!areIdempotent(columns)) {
    setNonIdempotentOps();
  }
}
origin: com.facebook.presto.cassandra/cassandra-driver

Delete(String keyspace,
    String table,
    List<Object> routingKeyValues,
    List<ColumnMetadata> partitionKey,
    List<Selector> columns) {
  super(keyspace, partitionKey, routingKeyValues);
  this.table = table;
  this.columns = columns;
  this.where = new Where(this);
  this.usings = new Options(this);
  this.conditions = new Conditions(this);
  // This is for JAVA-1089, if the query deletes an element in a list, the statement should be non-idempotent.
  if (!areIdempotent(columns)) {
    setNonIdempotentOps();
  }
}
origin: com.yugabyte/cassandra-driver-core

Delete(String keyspace,
    String table,
    List<Object> routingKeyValues,
    List<ColumnMetadata> partitionKey,
    List<Selector> columns) {
  super(keyspace, partitionKey, routingKeyValues);
  this.table = table;
  this.columns = columns;
  this.where = new Where(this);
  this.usings = new Options(this);
  this.conditions = new Conditions(this);
  // This is for JAVA-1089, if the query deletes an element in a list, the statement should be non-idempotent.
  if (!areIdempotent(columns)) {
    setNonIdempotentOps();
  }
}
origin: com.stratio.cassandra/cassandra-driver-core

Delete(TableMetadata table, List<Object> columnNames) {
  super(table);
  this.table = escapeId(table.getName());
  this.columnNames = columnNames;
  this.where = new Where(this);
  this.usings = new Options(this);
}
origin: com.stratio.cassandra/cassandra-driver-core

Delete(String keyspace, String table, List<Object> columnNames) {
  super(keyspace);
  this.table = table;
  this.columnNames = columnNames;
  this.where = new Where(this);
  this.usings = new Options(this);
}
origin: com.yugabyte/cassandra-driver-mapping

@Override
void modifyQueryString(BuiltStatement query) {
  if (query instanceof Insert) {
    ((Insert) query).using().and(QueryBuilder.timestamp(QueryBuilder.bindMarker()));
  } else if (query instanceof Delete) {
    ((Delete) query).using().and(QueryBuilder.timestamp(QueryBuilder.bindMarker()));
  } else {
    throw new AssertionError("Unexpected query type: " + query.getClass());
  }
}
origin: com.yugabyte/cassandra-driver-core

/**
 * Adds a new options for this DELETE statement.
 *
 * @param using the option to add.
 * @return the options of this DELETE statement.
 */
public Options using(Using using) {
  return usings.and(using);
}
origin: com.yugabyte/cassandra-driver-core

/**
 * Adds the provided option.
 *
 * @param using a DELETE option.
 * @return this {@code Options} object.
 */
public Options and(Using using) {
  usings.add(using);
  checkForBindMarkers(using);
  return this;
}
origin: com.stratio.cassandra/cassandra-driver-core

/**
 * Adds the provided option.
 *
 * @param using a DELETE option.
 * @return this {@code Options} object.
 */
public Options and(Using using) {
  usings.add(using);
  checkForBindMarkers(using);
  return this;
}
origin: com.stratio.cassandra/cassandra-driver-core

/**
 * Adds a new options for this DELETE statement.
 *
 * @param using the option to add.
 * @return the options of this DELETE statement.
 */
public Options using(Using using) {
  return usings.and(using);
}
origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Adds the provided option.
 *
 * @param using a DELETE option.
 * @return this {@code Options} object.
 */
public Options and(Using using) {
  usings.add(using);
  checkForBindMarkers(using);
  return this;
}
origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Adds a new options for this DELETE statement.
 *
 * @param using the option to add.
 * @return the options of this DELETE statement.
 */
public Options using(Using using) {
  return usings.and(using);
}
origin: io.prestosql.cassandra/cassandra-driver

/**
 * Adds a new options for this DELETE statement.
 *
 * @param using the option to add.
 * @return the options of this DELETE statement.
 */
public Options using(Using using) {
  return usings.and(using);
}
origin: com.datastax.cassandra/cassandra-driver-core

Delete(
  String keyspace,
  String table,
  List<Object> routingKeyValues,
  List<ColumnMetadata> partitionKey,
  List<Selector> columns) {
 super(keyspace, partitionKey, routingKeyValues);
 this.table = table;
 this.columns = columns;
 this.where = new Where(this);
 this.usings = new Options(this);
 this.conditions = new Conditions(this);
 // This is for JAVA-1089, if the query deletes an element in a list, the statement should be
 // non-idempotent.
 if (!areIdempotent(columns)) {
  setNonIdempotentOps();
 }
}
origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Adds the provided option.
 *
 * @param using a DELETE option.
 * @return this {@code Options} object.
 */
public Options and(Using using) {
 usings.add(using);
 checkForBindMarkers(using);
 return this;
}
origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Adds a new options for this DELETE statement.
 *
 * @param using the option to add.
 * @return the options of this DELETE statement.
 */
public Options using(Using using) {
 return usings.and(using);
}
com.datastax.driver.core.querybuilderDelete$Options

Javadoc

The options of a DELETE statement.

Most used methods

  • and
    Adds the provided option.
  • <init>
  • checkForBindMarkers
  • where
    Adds a where clause to the DELETE statement these options are part of.

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Path (java.nio.file)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Join (org.hibernate.mapping)
  • From CI to AI: The AI layer in your organization
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