Example usage for org.apache.cassandra.dht Range normalize

List of usage examples for org.apache.cassandra.dht Range normalize

Introduction

In this page you can find the example usage for org.apache.cassandra.dht Range normalize.

Prototype

public static <T extends RingPosition<T>> List<Range<T>> normalize(Collection<Range<T>> ranges) 

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