public static KVOperation createScan(final byte[] startKey, final byte[] endKey, final int limit,
                                         final boolean returnValue) {
        return new KVOperation(startKey, endKey, Pair.of(limit, returnValue), SCAN);
    }
The best practice is to call this method only once
and keep a copy of it yourself.
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/storage/KVOperation.java