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

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

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

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

   .append('\'');
and(sb, formatted).append("compaction = ").append(formatOptionMap(options.getCompaction()));
and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
 and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
origin: com.datastax.cassandra/cassandra-driver-core

assertThat(table.getOptions().getCompression())
  .contains(entry("class", "org.apache.cassandra.io.compress.DeflateCompressor"))
  .contains(entry("chunk_length_in_kb", "128"));
origin: com.datastax.cassandra/cassandra-driver-core

  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getCompaction()).contains(entry("sstable_size_in_mb", "15"));
assertThat(table.getOptions().getCompression())
  .contains(
    entry(
assertThat(table.getOptions().getCompression())
  .contains(entry("chunk_length_in_kb", "128")); // note the "in" prefix
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getCompaction()).contains(entry("sstable_size_in_mb", "15"));
assertThat(table.getOptions().getCompression())
  .contains(
    entry(
assertThat(table.getOptions().getCompression())
  .contains(entry("chunk_length_in_kb", "128")); // note the "in" prefix
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getCompaction()).contains(entry("sstable_size_in_mb", "15"));
assertThat(table.getOptions().getCompression())
  .contains(
    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");
origin: com.facebook.presto.cassandra/cassandra-driver

  and(sb, formatted).append("comment = '").append(options.getComment().replace("'", "''")).append('\'');
and(sb, formatted).append("compaction = ").append(formatOptionMap(options.getCompaction()));
and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
  and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
origin: io.prestosql.cassandra/cassandra-driver

  and(sb, formatted).append("comment = '").append(options.getComment().replace("'", "''")).append('\'');
and(sb, formatted).append("compaction = ").append(formatOptionMap(options.getCompaction()));
and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
  and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
origin: com.yugabyte/cassandra-driver-core

  and(sb, formatted).append("comment = '").append(options.getComment().replace("'", "''")).append('\'');
and(sb, formatted).append("compaction = ").append(formatOptionMap(options.getCompaction()));
and(sb, formatted).append("compression = ").append(formatOptionMap(options.getCompression()));
if (cassandraVersion.getMajor() >= 2) {
  and(sb, formatted).append("default_time_to_live = ").append(options.getDefaultTimeToLive());
origin: org.janusgraph/janusgraph-cql

Map<String, String> getCompressionOptions(final String name) throws BackendException {
  final KeyspaceMetadata keyspaceMetadata = Option.of(this.cluster.getMetadata().getKeyspace(this.keyspace))
      .getOrElseThrow(() -> new PermanentBackendException(String.format("Unknown keyspace '%s'", this.keyspace)));
  return Option.of(keyspaceMetadata.getTable(name))
      .map(tableMetadata -> tableMetadata.getOptions().getCompression())
      .getOrElseThrow(() -> new PermanentBackendException(String.format("Unknown table '%s'", name)));
}
origin: com.datastax.dse/dse-java-driver-core

assertThat(table.getOptions().getCompression())
  .contains(entry("class", "org.apache.cassandra.io.compress.DeflateCompressor"))
  .contains(entry("chunk_length_in_kb", "128"));
origin: com.datastax.dse/dse-java-driver-core

  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getCompaction()).contains(entry("sstable_size_in_mb", "15"));
assertThat(table.getOptions().getCompression())
  .contains(
    entry(
assertThat(table.getOptions().getCompression())
  .contains(entry("chunk_length_in_kb", "128")); // note the "in" prefix
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getCompaction()).contains(entry("sstable_size_in_mb", "15"));
assertThat(table.getOptions().getCompression())
  .contains(
    entry(
assertThat(table.getOptions().getCompression())
  .contains(entry("chunk_length_in_kb", "128")); // note the "in" prefix
assertThat(table.getOptions().getDefaultTimeToLive()).isEqualTo(0);
  .contains(entry("class", "org.apache.cassandra.db.compaction.LeveledCompactionStrategy"));
assertThat(table.getOptions().getCompaction()).contains(entry("sstable_size_in_mb", "15"));
assertThat(table.getOptions().getCompression())
  .contains(
    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");
com.datastax.driver.coreTableOptionsMetadatagetCompression

Javadoc

Returns the compression 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
  • 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

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for WebStorm
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