protected List<Long> getMaxTimestampList(ColumnFamilyStore cfs) { List<Long> list = new LinkedList<Long>(); for (SSTableReader sstable : cfs.getSSTables()) list.add(sstable.getMaxTimestamp()); return list; }
public static void assertMaxTimestamp(ColumnFamilyStore cfs, long maxTimestampExpected) { long maxTimestampObserved = Long.MIN_VALUE; for (SSTableReader sstable : cfs.getSSTables()) maxTimestampObserved = Math.max(sstable.getMaxTimestamp(), maxTimestampObserved); assertEquals(maxTimestampExpected, maxTimestampObserved); }