Example usage for org.apache.cassandra.db.lifecycle LifecycleTransaction originals

List of usage examples for org.apache.cassandra.db.lifecycle LifecycleTransaction originals

Introduction

In this page you can find the example usage for org.apache.cassandra.db.lifecycle LifecycleTransaction originals.

Prototype

Set originals

To view the source code for org.apache.cassandra.db.lifecycle LifecycleTransaction originals.

Click 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;
}