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

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

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

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

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_fail_when_negative_rows_per_partition() throws Exception {
 createTable("test")
   .addPartitionKey("id", DataType.bigint())
   .addColumn("name", DataType.text())
   .withOptions()
   .caching(KeyCaching.ALL, rows(-3));
}
origin: com.datastax.cassandra/cassandra-driver-core

.addColumn("name", DataType.text())
.withOptions()
.caching(KeyCaching.ALL, rows(100));
origin: com.datastax.cassandra/cassandra-driver-core

.defaultTimeToLive(1337)
.bloomFilterFPChance(0.42)
.caching(SchemaBuilder.KeyCaching.ALL, rows(1))
.gcGraceSeconds(1234567890)
.minIndexInterval(6)
origin: com.datastax.cassandra/cassandra-driver-core

alterTable("test").withOptions().caching(KeyCaching.NONE, rows(100));
origin: com.datastax.dse/dse-java-driver-core

@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class)
public void should_fail_when_negative_rows_per_partition() throws Exception {
 createTable("test")
   .addPartitionKey("id", DataType.bigint())
   .addColumn("name", DataType.text())
   .withOptions()
   .caching(KeyCaching.ALL, rows(-3));
}
origin: com.datastax.dse/dse-java-driver-core

.addColumn("name", DataType.text())
.withOptions()
.caching(KeyCaching.ALL, rows(100));
origin: com.datastax.dse/dse-java-driver-core

alterTable("test").withOptions().caching(KeyCaching.NONE, rows(100));
com.datastax.driver.core.schemabuilderSchemaBuilderrows

Javadoc

Return the row caching strategy that caches a given number of rows, 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.
  • lz4
    Create options for the LZ4 compression 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.
  • dateTieredStrategy,
  • deflate,
  • dropType,
  • noCompression,
  • snappy,
  • allRows,
  • alterKeyspace,
  • alterTable,
  • always,
  • dropIndex

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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