List of usage examples for org.apache.cassandra.dht Range normalize
public static <T extends RingPosition<T>> List<Range<T>> normalize(Collection<Range<T>> ranges)
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; }