public int getDiskIndex(SSTableReader sstable) { if (positions == null) { return getBoundariesFromSSTableDirectory(sstable); } int pos = Collections.binarySearch(positions, sstable.first); assert pos < 0; // boundaries are .minkeybound and .maxkeybound so they should never be equal return -pos - 1; }
public int getDiskIndex(SSTableReader sstable) { if (positions == null) { return getBoundariesFromSSTableDirectory(sstable); } int pos = Collections.binarySearch(positions, sstable.first); assert pos < 0; // boundaries are .minkeybound and .maxkeybound so they should never be equal return -pos - 1; }
public int getDiskIndex(SSTableReader sstable) { if (positions == null) { return getBoundariesFromSSTableDirectory(sstable); } int pos = Collections.binarySearch(positions, sstable.first); assert pos < 0; // boundaries are .minkeybound and .maxkeybound so they should never be equal return -pos - 1; }