@Override
public Scanner descendingIndexScanBefore(QueryKey key) {
final TableSchema schema = store.getSchema(tableId);
long indexId = store.getIndexId(tableId, key.getIndexName());
IndexRowKey startRow = IndexRowKeyBuilder
.newBuilder(tableId, indexId)
.withQueryKey(key, schema)
.withSortOrder(SortOrder.Descending)
.build();
IndexRowKey endRow = IndexRowKeyBuilder
.newBuilder(tableId, indexId + 1)
.withSortOrder(SortOrder.Descending)
.build();
return createScannerForRange(incrementRowKey(startRow.encode()), endRow.encode());
}