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

How to use
isCDC
method
in
com.datastax.driver.core.TableOptionsMetadata

Best Java code snippets using com.datastax.driver.core.TableOptionsMetadata.isCDC (Showing top 4 results out of 315)

origin: com.datastax.cassandra/cassandra-driver-core

and(sb, formatted).append("cdc = ").append(options.isCDC());
origin: com.datastax.cassandra/cassandra-driver-core

 /**
  * Ensures that if a table is configured with change data capture enabled that {@link
  * TableOptionsMetadata#isCDC()} returns true for that table.
  *
  * @test_category metadata
  * @jira_ticket JAVA-1287
  * @jira_ticket CASSANDRA-12041
  */
 @Test(groups = "short")
 public void should_parse_cdc_from_table_options() {
  // given
  // create a simple table with cdc as true.
  String cql =
    String.format(
      "CREATE TABLE %s.cdc_table (\n"
        + "    k text,\n"
        + "    c int,\n"
        + "    v timeuuid,\n"
        + "    PRIMARY KEY (k, c)\n"
        + ") WITH cdc=true;",
      keyspace);
  session().execute(cql);

  // when retrieving the table's metadata.
  TableMetadata table = cluster().getMetadata().getKeyspace(keyspace).getTable("cdc_table");
  // then the table's options should have cdc as true.
  assertThat(table.getOptions().isCDC()).isEqualTo(true);
  assertThat(table.asCQLQuery(true)).contains("cdc = true");
 }
}
origin: com.yugabyte/cassandra-driver-core

and(sb, formatted).append("cdc = ").append(options.isCDC());
origin: com.datastax.dse/dse-java-driver-core

 /**
  * Ensures that if a table is configured with change data capture enabled that {@link
  * TableOptionsMetadata#isCDC()} returns true for that table.
  *
  * @test_category metadata
  * @jira_ticket JAVA-1287
  * @jira_ticket CASSANDRA-12041
  */
 @Test(groups = "short")
 public void should_parse_cdc_from_table_options() {
  // given
  // create a simple table with cdc as true.
  String cql =
    String.format(
      "CREATE TABLE %s.cdc_table (\n"
        + "    k text,\n"
        + "    c int,\n"
        + "    v timeuuid,\n"
        + "    PRIMARY KEY (k, c)\n"
        + ") WITH cdc=true;",
      keyspace);
  session().execute(cql);

  // when retrieving the table's metadata.
  TableMetadata table = cluster().getMetadata().getKeyspace(keyspace).getTable("cdc_table");
  // then the table's options should have cdc as true.
  assertThat(table.getOptions().isCDC()).isEqualTo(true);
  assertThat(table.asCQLQuery(true)).contains("cdc = true");
 }
}
com.datastax.driver.coreTableOptionsMetadataisCDC

Javadoc

Returns whether or not change data capture is enabled for this table.

For Cassandra versions prior to 3.8.0, this method always returns false.

Popular methods of TableOptionsMetadata

  • getCompaction
    Returns the compaction options for this table.
  • getComment
    Returns the commentary set for this table.
  • getDefaultTimeToLive
    Returns the default TTL for this table. Note: this option is not available in Cassandra 1.2 and will
  • getCompression
    Returns the compression options for this table.
  • getBloomFilterFalsePositiveChance
    Returns the false positive chance for the Bloom filter of this table.
  • getCaching
    Returns the caching options for this table.
  • getCrcCheckChance
    When compression is enabled, this option defines the probability with which checksums for compressed
  • getGcGraceInSeconds
    Returns the tombstone garbage collection grace time in seconds for this table.
  • getIndexInterval
    Returns the index interval option for this table. Note: this option is not available in Cassandra 1.
  • getLocalReadRepairChance
    Returns the cluster local read repair chance set for this table.
  • getMaxIndexInterval
    Returns the maximum index interval option for this table. Note: this option is available in Cassandr
  • getMinIndexInterval
    Returns the minimum index interval option for this table. Note: this option is available in Cassandr
  • getMaxIndexInterval,
  • getMinIndexInterval,
  • getReadRepairChance,
  • getReplicateOnWrite,
  • getSpeculativeRetry,
  • isCompactStorage,
  • <init>,
  • isNullOrAbsent,
  • getMemtableFlushPeriodInMs

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 25 Plugins for Webstorm
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