Tabnine Logo
TableOptionsMetadata.getDefaultTimeToLive
Code IndexAdd Tabnine to your IDE (free)

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

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

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

and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
 and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
 and(sb, formatted)
   .append("speculative_retry = '")
origin: io.zipkin.zipkin2/zipkin-storage-cassandra-v1

static boolean hasUpgrade1_defaultTtl(KeyspaceMetadata keyspaceMetadata) {
 // TODO: we need some approach to forward-check compatibility as well.
 //  backward: this code knows the current schema is too old.
 //  forward:  this code knows the current schema is too new.
 return keyspaceMetadata.getTable("traces").getOptions().getDefaultTimeToLive() > 0;
}
origin: io.zipkin.java/zipkin-storage-cassandra

static boolean hasUpgrade1_defaultTtl(KeyspaceMetadata keyspaceMetadata) {
 // TODO: we need some approach to forward-check compatibility as well.
 //  backward: this code knows the current schema is too old.
 //  forward:  this code knows the current schema is too new.
 return keyspaceMetadata.getTable("traces").getOptions().getDefaultTimeToLive() > 0;
}
origin: com.datastax.cassandra/cassandra-driver-core

assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.9PERCENTILE");
assertThat(table.getOptions().getIndexInterval()).isNull();
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.9PERCENTILE");
assertThat(table.getOptions().getIndexInterval()).isNull();
    entry("sstable_compression", "org.apache.cassandra.io.compress.SnappyCompressor"));
assertThat(table.getOptions().getCompression()).contains(entry("chunk_length_kb", "128"));
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.0PERCENTILE");
assertThat(table.getOptions().getIndexInterval()).isNull();
    entry("sstable_compression", "org.apache.cassandra.io.compress.SnappyCompressor"));
assertThat(table.getOptions().getCompression()).contains(entry("chunk_length_kb", "128"));
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.0PERCENTILE"); // default
assertThat(table.getOptions().getIndexInterval()).isEqualTo(128);
    entry("sstable_compression", "org.apache.cassandra.io.compress.SnappyCompressor"));
assertThat(table.getOptions().getCompression()).contains(entry("chunk_length_kb", "128"));
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0); // default
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("NONE"); // default
assertThat(table.getOptions().getIndexInterval()).isNull();
origin: io.prestosql.cassandra/cassandra-driver

and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
  and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
  and(sb, formatted).append("speculative_retry = '").append(options.getSpeculativeRetry()).append('\'');
  if (options.getIndexInterval() != null)
origin: com.facebook.presto.cassandra/cassandra-driver

and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
  and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
  and(sb, formatted).append("speculative_retry = '").append(options.getSpeculativeRetry()).append('\'');
  if (options.getIndexInterval() != null)
origin: com.yugabyte/cassandra-driver-core

and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
  and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
  and(sb, formatted).append("speculative_retry = '").append(options.getSpeculativeRetry()).append('\'');
  if (options.getIndexInterval() != null)
origin: io.zipkin.zipkin2/zipkin-storage-cassandra

CassandraSpanStore(CassandraStorage storage) {
 Session session = storage.session();
 maxTraceCols = storage.maxTraceCols();
 indexFetchMultiplier = storage.indexFetchMultiplier();
 strictTraceId = storage.strictTraceId();
 searchEnabled = storage.searchEnabled();
 spans = new SelectFromSpan.Factory(session, strictTraceId, maxTraceCols);
 dependencies = new SelectDependencies.Factory(session);
 if (searchEnabled) {
  KeyspaceMetadata md = Schema.ensureKeyspaceMetadata(session, storage.keyspace());
  indexTtl = md.getTable(TABLE_TRACE_BY_SERVICE_SPAN).getOptions().getDefaultTimeToLive();
  spanNames = new SelectSpanNames.Factory(session);
  serviceNames = new SelectServiceNames.Factory(session).create();
  traceIdsFromServiceSpan = new SelectTraceIdsFromServiceSpan.Factory(session);
  spanTable = initialiseSelectTraceIdsFromSpan(session);
 } else {
  indexTtl = 0;
  spanNames = null;
  serviceNames = null;
  spanTable = null;
  traceIdsFromServiceSpan = null;
 }
}
origin: com.datastax.dse/dse-java-driver-core

assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.9PERCENTILE");
assertThat(table.getOptions().getIndexInterval()).isNull();
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.9PERCENTILE");
assertThat(table.getOptions().getIndexInterval()).isNull();
    entry("sstable_compression", "org.apache.cassandra.io.compress.SnappyCompressor"));
assertThat(table.getOptions().getCompression()).contains(entry("chunk_length_kb", "128"));
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.0PERCENTILE");
assertThat(table.getOptions().getIndexInterval()).isNull();
    entry("sstable_compression", "org.apache.cassandra.io.compress.SnappyCompressor"));
assertThat(table.getOptions().getCompression()).contains(entry("chunk_length_kb", "128"));
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("99.0PERCENTILE"); // default
assertThat(table.getOptions().getIndexInterval()).isEqualTo(128);
    entry("sstable_compression", "org.apache.cassandra.io.compress.SnappyCompressor"));
assertThat(table.getOptions().getCompression()).contains(entry("chunk_length_kb", "128"));
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0); // default
assertThat(table.getOptions().getSpeculativeRetry()).isEqualTo("NONE"); // default
assertThat(table.getOptions().getIndexInterval()).isNull();
com.datastax.driver.coreTableOptionsMetadatagetDefaultTimeToLive

Javadoc

Returns the default TTL for this table.

Note: this option is not available in Cassandra 1.2 and will return 0 (no default TTL) when connected to 1.2 nodes.

Popular methods of TableOptionsMetadata

  • getCompaction
    Returns the compaction options for this table.
  • getComment
    Returns the commentary set for this table.
  • 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
  • getReadRepairChance
    Returns the chance with which a read repair is triggered for this table.
  • getMinIndexInterval,
  • getReadRepairChance,
  • getReplicateOnWrite,
  • getSpeculativeRetry,
  • isCompactStorage,
  • <init>,
  • isCDC,
  • isNullOrAbsent,
  • getMemtableFlushPeriodInMs

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • JComboBox (javax.swing)
  • JOptionPane (javax.swing)
  • CodeWhisperer alternatives
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