Index index = keyRange.indexRowType().index();
int firstSpatialColumn;
int dimensions;
if (index.isSpatial()) {
firstSpatialColumn = index.firstSpatialArgument();
dimensions = index.dimensions();
} else {
firstSpatialColumn = Integer.MAX_VALUE;
dimensions = 0;
}
List<IndexColumn> indexColumns = index().getAllColumns();