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

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

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

origin: palantir/atlasdb

private CompressionOptions getCompression(int blockSize) {
  int chunkLength = blockSize != 0 ? blockSize : AtlasDbConstants.MINIMUM_COMPRESSION_BLOCK_SIZE_KB;
  return SchemaBuilder.lz4().withChunkLengthInKb(chunkLength);
}
origin: com.datastax.cassandra/cassandra-driver-core

@Test(groups = "unit")
public void should_build_compressions_options_for_lz4() throws Exception {
 // When
 final String built = lz4().withChunkLengthInKb(128).withCRCCheckChance(0.6D).build();
 // Then
 assertThat(built)
   .isEqualTo(
     "{'sstable_compression' : 'LZ4Compressor', 'chunk_length_kb' : 128, 'crc_check_chance' : 0.6}");
}
origin: com.palantir.atlasdb/atlasdb-cassandra

private CompressionOptions getCompression(int blockSize) {
  int chunkLength = blockSize != 0 ? blockSize : AtlasDbConstants.MINIMUM_COMPRESSION_BLOCK_SIZE_KB;
  return SchemaBuilder.lz4().withChunkLengthInKb(chunkLength);
}
origin: com.datastax.cassandra/cassandra-driver-core

.comment("This is a comment")
.compactionOptions(leveledStrategy().ssTableSizeInMB(160))
.compressionOptions(lz4())
.dcLocalReadRepairChance(0.21)
.defaultTimeToLive(100)
origin: com.datastax.cassandra/cassandra-driver-core

.comment("This is a comment")
.compactionOptions(leveledStrategy().ssTableSizeInMB(160))
.compressionOptions(lz4())
.dcLocalReadRepairChance(0.21)
.defaultTimeToLive(100)
origin: com.datastax.dse/dse-java-driver-core

@Test(groups = "unit")
public void should_build_compressions_options_for_lz4() throws Exception {
 // When
 final String built = lz4().withChunkLengthInKb(128).withCRCCheckChance(0.6D).build();
 // Then
 assertThat(built)
   .isEqualTo(
     "{'sstable_compression' : 'LZ4Compressor', 'chunk_length_kb' : 128, 'crc_check_chance' : 0.6}");
}
origin: org.janusgraph/janusgraph-cql

private static CompressionOptions compressionOptions(final Configuration configuration) {
  if (!configuration.get(CF_COMPRESSION)) {
    // No compression
    return noCompression();
  }
  return Match(configuration.get(CF_COMPRESSION_TYPE)).of(
      Case($("LZ4Compressor"), lz4()),
      Case($("SnappyCompressor"), snappy()),
      Case($("DeflateCompressor"), deflate()))
      .withChunkLengthInKb(configuration.get(CF_COMPRESSION_BLOCK_SIZE));
}
origin: com.datastax.dse/dse-java-driver-core

.comment("This is a comment")
.compactionOptions(leveledStrategy().ssTableSizeInMB(160))
.compressionOptions(lz4())
.dcLocalReadRepairChance(0.21)
.defaultTimeToLive(100)
origin: com.datastax.dse/dse-java-driver-core

.comment("This is a comment")
.compactionOptions(leveledStrategy().ssTableSizeInMB(160))
.compressionOptions(lz4())
.dcLocalReadRepairChance(0.21)
.defaultTimeToLive(100)
com.datastax.driver.core.schemabuilderSchemaBuilderlz4

Javadoc

Create options for the LZ4 compression strategy, to 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.
  • sizedTieredStategy
    Create options for the size-tiered compaction strategy, for 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

  • Making http requests using okhttp
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JTextField (javax.swing)
  • Best plugins for Eclipse
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