Example usage for org.apache.cassandra.io.sstable SSTableRewriter constructKeepingOriginals

List of usage examples for org.apache.cassandra.io.sstable SSTableRewriter constructKeepingOriginals

Introduction

In this page you can find the example usage for org.apache.cassandra.io.sstable SSTableRewriter constructKeepingOriginals.

Prototype

@Deprecated
    public static SSTableRewriter constructKeepingOriginals(ILifecycleTransaction transaction,
            boolean keepOriginals, long maxAge, boolean isOffline) 

Source Link

Usage

From source file:com.jeffjirsa.cassandra.db.compaction.writers.CleaningTimeWindowCompactionWriter.java

License:Apache License

@SuppressWarnings("resource")
public CleaningTimeWindowCompactionWriter(ColumnFamilyStore cfs, Directories directories,
        LifecycleTransaction txn, Set<SSTableReader> nonExpiredSSTables, int nowInSec, boolean offline,
        boolean keepOriginals) {

    super(cfs, directories, txn, nonExpiredSSTables, offline, keepOriginals);
    this.allSSTables = txn.originals();
    this.txn = txn;
    this.sstableWriter = SSTableRewriter.constructKeepingOriginals(txn, keepOriginals, maxAge, offline);
    this.sortedRanges = Range.normalize(StorageService.instance.getLocalRanges(cfs.keyspace.getName()));
    this.nowInSec = nowInSec;
}