Tabnine Logo
SchemaBuilder.sizedTieredStategy
Code IndexAdd Tabnine to your IDE (free)

How to use
sizedTieredStategy
method
in
com.datastax.driver.core.schemabuilder.SchemaBuilder

Best Java code snippets using com.datastax.driver.core.schemabuilder.SchemaBuilder.sizedTieredStategy (Showing top 13 results out of 315)

origin: palantir/atlasdb

private CompactionOptions<?> getCompaction(boolean appendHeavyReadLight) {
  return appendHeavyReadLight ? SchemaBuilder.sizedTieredStategy().minThreshold(4).maxThreshold(32)
      : SchemaBuilder.leveledStrategy();
}
origin: com.datastax.cassandra/cassandra-driver-core

 @Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
 public void should_throw_exception_if_tombstone_threshold_negative() throws Exception {
  sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build();
 }
}
origin: com.datastax.cassandra/cassandra-driver-core

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_throw_exception_if_tombstone_threshold_out_of_range() throws Exception {
 sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).tombstoneThreshold(1.89).build();
}
origin: com.datastax.cassandra/cassandra-driver-core

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_throw_exception_if_cold_read_ratio_out_of_range() throws Exception {
 sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(1.89).build();
}
origin: com.datastax.cassandra/cassandra-driver-core

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_throw_exception_if_cold_read_ratio_negative() throws Exception {
 sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build();
}
origin: com.datastax.cassandra/cassandra-driver-core

sizedTieredStategy()
  .bucketLow(0.5)
  .bucketHigh(1.2)
origin: com.palantir.atlasdb/atlasdb-cassandra

private CompactionOptions<?> getCompaction(boolean appendHeavyReadLight) {
  return appendHeavyReadLight ? SchemaBuilder.sizedTieredStategy().minThreshold(4).maxThreshold(32)
      : SchemaBuilder.leveledStrategy();
}
origin: com.datastax.dse/dse-java-driver-core

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_throw_exception_if_cold_read_ratio_negative() throws Exception {
 sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build();
}
origin: com.datastax.dse/dse-java-driver-core

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_throw_exception_if_tombstone_threshold_out_of_range() throws Exception {
 sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).tombstoneThreshold(1.89).build();
}
origin: com.datastax.dse/dse-java-driver-core

 @Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
 public void should_throw_exception_if_tombstone_threshold_negative() throws Exception {
  sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build();
 }
}
origin: com.datastax.dse/dse-java-driver-core

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_throw_exception_if_cold_read_ratio_out_of_range() throws Exception {
 sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(1.89).build();
}
origin: com.datastax.dse/dse-java-driver-core

sizedTieredStategy()
  .bucketLow(0.5)
  .bucketHigh(1.2)
origin: org.janusgraph/janusgraph-cql

private static CompactionOptions<?> compactionOptions(final Configuration configuration) {
  if (!configuration.has(COMPACTION_STRATEGY)) {
    return null;
  }
  final CompactionOptions<?> compactionOptions = Match(configuration.get(COMPACTION_STRATEGY))
      .of(
          Case($("SizeTieredCompactionStrategy"), sizedTieredStategy()),
          Case($("DateTieredCompactionStrategy"), dateTieredStrategy()),
          Case($("LeveledCompactionStrategy"), leveledStrategy()));
  Array.of(configuration.get(COMPACTION_OPTIONS))
      .grouped(2)
      .forEach(keyValue -> compactionOptions.freeformOption(keyValue.get(0), keyValue.get(1)));
  return compactionOptions;
}
com.datastax.driver.core.schemabuilderSchemaBuildersizedTieredStategy

Javadoc

Create options for the size-tiered compaction strategy, for use in a CREATE or ALTER TABLE statement.

Popular methods of SchemaBuilder

  • createTable
    Start building a new CREATE TABLE statement.
  • createKeyspace
    Start building a new CREATE KEYSPACE statement.
  • dropKeyspace
    Start building a new DROP KEYSPACE statement.
  • dropTable
    Start building a new DROP TABLE statement.
  • leveledStrategy
    Create options for the leveled compaction strategy, to use in a CREATE or ALTER TABLE statement.
  • lz4
    Create options for the LZ4 compression strategy, to use in a CREATE or ALTER TABLE statement.
  • createType
    Start building a new CREATE TYPE statement.
  • noSpeculativeRetry
    Create the speculative retry strategy that never retries reads, to use in a CREATE or ALTER TABLE st
  • createIndex
    Start building a new CREATE INDEX statement.
  • dateTieredStrategy
    Create options for the date-tiered compaction strategy, to use in a CREATE or ALTER TABLE statement.
  • deflate
    Create options for the Deflate compression strategy, to use in a CREATE or ALTER TABLE statement.
  • dropType
    Start building a new DROP TYPE statement.
  • deflate,
  • dropType,
  • noCompression,
  • snappy,
  • allRows,
  • alterKeyspace,
  • alterTable,
  • always,
  • dropIndex

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • getSystemService (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
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