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

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

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

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

 and(sb, formatted)
   .append("caching = '")
   .append(options.getCaching().get("keys"))
   .append('\'');
else and(sb, formatted).append("caching = ").append(formatOptionMap(options.getCaching()));
if (options.getComment() != null)
 and(sb, formatted)
origin: com.datastax.cassandra/cassandra-driver-core

assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching()).contains(entry("rows_per_partition", "10"));
assertThat(table.getOptions().getCompaction())
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching()).contains(entry("rows_per_partition", "10"));
assertThat(table.getOptions().getCompaction())
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching()).contains(entry("rows_per_partition", "ALL"));
assertThat(table.getOptions().getCompaction())
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching())
  .doesNotContain(entry("rows_per_partition", "ALL")); // 2.1 +
assertThat(table.getOptions().getCompaction())
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
origin: io.prestosql.cassandra/cassandra-driver

and(sb, formatted).append("bloom_filter_fp_chance = ").append(options.getBloomFilterFalsePositiveChance());
if (cassandraVersion.getMajor() < 2 || cassandraVersion.getMajor() == 2 && cassandraVersion.getMinor() < 1)
  and(sb, formatted).append("caching = '").append(options.getCaching().get("keys")).append('\'');
else
  and(sb, formatted).append("caching = ").append(formatOptionMap(options.getCaching()));
if (options.getComment() != null)
  and(sb, formatted).append("comment = '").append(options.getComment().replace("'", "''")).append('\'');
origin: com.facebook.presto.cassandra/cassandra-driver

and(sb, formatted).append("bloom_filter_fp_chance = ").append(options.getBloomFilterFalsePositiveChance());
if (cassandraVersion.getMajor() < 2 || cassandraVersion.getMajor() == 2 && cassandraVersion.getMinor() < 1)
  and(sb, formatted).append("caching = '").append(options.getCaching().get("keys")).append('\'');
else
  and(sb, formatted).append("caching = ").append(formatOptionMap(options.getCaching()));
if (options.getComment() != null)
  and(sb, formatted).append("comment = '").append(options.getComment().replace("'", "''")).append('\'');
origin: com.yugabyte/cassandra-driver-core

and(sb, formatted).append("bloom_filter_fp_chance = ").append(options.getBloomFilterFalsePositiveChance());
if (cassandraVersion.getMajor() < 2 || cassandraVersion.getMajor() == 2 && cassandraVersion.getMinor() < 1)
  and(sb, formatted).append("caching = '").append(options.getCaching().get("keys")).append('\'');
else
  and(sb, formatted).append("caching = ").append(formatOptionMap(options.getCaching()));
if (options.getComment() != null)
  and(sb, formatted).append("comment = '").append(options.getComment().replace("'", "''")).append('\'');
origin: com.datastax.dse/dse-java-driver-core

assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching()).contains(entry("rows_per_partition", "10"));
assertThat(table.getOptions().getCompaction())
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching()).contains(entry("rows_per_partition", "10"));
assertThat(table.getOptions().getCompaction())
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching()).contains(entry("rows_per_partition", "ALL"));
assertThat(table.getOptions().getCompaction())
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
assertThat(table.getOptions().getComment()).isEqualTo("My awesome table");
assertThat(table.getOptions().getCaching()).contains(entry("keys", "ALL"));
assertThat(table.getOptions().getCaching())
  .doesNotContain(entry("rows_per_partition", "ALL")); // 2.1 +
assertThat(table.getOptions().getCompaction())
assertThat(table.getOptions().getBloomFilterFalsePositiveChance()).isEqualTo(0.01);
com.datastax.driver.coreTableOptionsMetadatagetCaching

Javadoc

Returns the caching options for this table.

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.
  • 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

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JPanel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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