[RocksDB] Reverse search

To get a reverse order list, assume prefix is ​​set and startRow is not specified.
We need to add the startRow to the maximum value of the character for positioning

if (startRow != null) {
    scanObj.setStartRow(startRow);
} else if (request.isReverse()) {
    scanObj.setStartRow(request.getActivityId() + Constants.DIVIDER + Character.MAX_VALUE);
}
This entry was posted in Java, RocksDB. Bookmark the permalink.