congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DropTable
Code IndexAdd Tabnine to your IDE (free)

How to use
DropTable
in
com.englishtown.vertx.cassandra.tablebuilder

Best Java code snippets using com.englishtown.vertx.cassandra.tablebuilder.DropTable (Showing top 7 results out of 315)

origin: com.englishtown.vertx/vertx-cassandra

/**
 * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.DropTable} statement
 *
 * @param keyspace the keyspace for the table to create
 * @param table    the table name
 * @return the drop table builder
 */
public static DropTable drop(String keyspace, String table) {
  return new DropTable(keyspace, table);
}
origin: ef-labs/vertx-cassandra

@Test
public void testIfExists() throws Exception {
  DropTable table = TableBuilder.drop("test_keyspace", "test_table").ifExists();
  String cql = table.getQueryString();
  assertEquals("DROP TABLE IF EXISTS test_keyspace.test_table", cql);
}
origin: ef-labs/vertx-cassandra

if (keyspaceMetadata != null) {
  for (TableMetadata tableMetadata : keyspaceMetadata.getTables()) {
    session.execute(TableBuilder.drop(keyspace, tableMetadata.getName()).ifExists());
origin: ef-labs/vertx-cassandra

@Test
public void testDropTable() throws Exception {
  DropTable table = TableBuilder.drop("test_keyspace", "test_table");
  String cql = table.getQueryString();
  assertEquals("DROP TABLE test_keyspace.test_table", cql);
}
origin: ef-labs/vertx-cassandra

    .ifExists();
session.execute(statement);
origin: com.englishtown/vertx-mod-cassandra

/**
 * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.DropTable} statement
 *
 * @param keyspace the keyspace for the table to create
 * @param table    the table name
 * @return the drop table builder
 */
public static DropTable drop(String keyspace, String table) {
  return new DropTable(keyspace, table);
}
origin: ef-labs/vertx-cassandra

/**
 * Returns a {@link com.englishtown.vertx.cassandra.tablebuilder.DropTable} statement
 *
 * @param keyspace the keyspace for the table to create
 * @param table    the table name
 * @return the drop table builder
 */
public static DropTable drop(String keyspace, String table) {
  return new DropTable(keyspace, table);
}
com.englishtown.vertx.cassandra.tablebuilderDropTable

Javadoc

DROP TABLE CQL3 statement builder

Most used methods

  • <init>
  • getQueryString
  • ifExists

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • String (java.lang)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • JCheckBox (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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