- Common ways to obtain DiskBoundaries
private void myMethod () {DiskBoundaries d =
ColumnFamilyStore cfs;cfs.getDiskBoundaries()
ColumnFamilyStore columnFamilyStore;new DiskBoundaries(columnFamilyStore.getDirectories().getWriteableLocations(), BlacklistedDirectories.getDirectoriesVersion())
DiskBoundaryManager diskBoundaryManager;ColumnFamilyStore columnFamilyStore;diskBoundaryManager.getDiskBoundaries(columnFamilyStore)
- Smart code suggestions by Codota
}
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; }