Example #1
0
 protected List<Long> getMaxTimestampList(ColumnFamilyStore cfs) {
   List<Long> list = new LinkedList<Long>();
   for (SSTableReader sstable : cfs.getSSTables()) list.add(sstable.getMaxTimestamp());
   return list;
 }
Example #2
0
 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);
 }