SchemaBuilder.alterTable("TableMetadata") .withOptions() .defaultTimeToLive(1337) .bloomFilterFPChance(0.42) .caching(SchemaBuilder.KeyCaching.ALL, rows(1)) .gcGraceSeconds(1234567890) .minIndexInterval(6) .indexInterval(7) .maxIndexInterval(8) .comment("Useful comment") .readRepairChance(0.123456) .speculativeRetry(percentile(50)) .dcLocalReadRepairChance(0.84) .memtableFlushPeriodInMillis(1234567890) .compactionOptions( dateTieredStrategy() .baseTimeSeconds(1) .maxSSTableAgeDays(4) .timestampResolution(TimeStampResolution.MILLISECONDS)) .compressionOptions(snappy()));
alterTable("test") .withOptions() .bloomFilterFPChance(0.01) .caching(Caching.ROWS_ONLY) .comment("This is a comment") .compactionOptions(leveledStrategy().ssTableSizeInMB(160)) .compressionOptions(lz4()) .dcLocalReadRepairChance(0.21) .defaultTimeToLive(100) .gcGraceSeconds(9999) .indexInterval(256) .minIndexInterval(64) .maxIndexInterval(512) .memtableFlushPeriodInMillis(12) .populateIOCacheOnFlush(true) .replicateOnWrite(true) .readRepairChance(0.42) .speculativeRetry(always()) .cdc(true); alterTable("test").withOptions().caching(KeyCaching.NONE, rows(100));
alterTable("test") .withOptions() .bloomFilterFPChance(0.01) .caching(Caching.ROWS_ONLY) .comment("This is a comment") .compactionOptions(leveledStrategy().ssTableSizeInMB(160)) .compressionOptions(lz4()) .dcLocalReadRepairChance(0.21) .defaultTimeToLive(100) .gcGraceSeconds(9999) .indexInterval(256) .minIndexInterval(64) .maxIndexInterval(512) .memtableFlushPeriodInMillis(12) .populateIOCacheOnFlush(true) .replicateOnWrite(true) .readRepairChance(0.42) .speculativeRetry(always()) .cdc(true); alterTable("test").withOptions().caching(KeyCaching.NONE, rows(100));
/** * Add options (WITH clause) to this ALTER TABLE statement. * * @return a new {@link Alter.Options} instance. */ public Options withOptions() { return new Options(this); }
/** * Add options (WITH clause) to this ALTER TABLE statement. * * @return a new {@link Alter.Options} instance. */ public Options withOptions() { return new Options(this); }
/** * Add options (WITH clause) to this ALTER TABLE statement. * * @return a new {@link Alter.Options} instance. */ public Options withOptions() { return new Options(this); }
/** * Add options (WITH clause) to this ALTER TABLE statement. * * @return a new {@link Alter.Options} instance. */ public Options withOptions() { return new Options(this); }