Skip to content

Commit

Permalink
refactor: separated keyvalue filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Sep 27, 2024
1 parent 9e63d3d commit 2230a2d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ public abstract class AbstractCompareCommand extends AbstractReplicateCommand {
private KeyValueProcessorArgs processorArgs = new KeyValueProcessorArgs();

protected ItemProcessor<KeyValue<byte[], Object>, KeyValue<byte[], Object>> processor() {
return RiotUtils.processor(new KeyValueFilter<>(ByteArrayCodec.INSTANCE, log), keyValueProcessor());
return RiotUtils.processor(keyValueFilter(), keyValueProcessor());
}

private KeyValueFilter<byte[], KeyValue<byte[], Object>> keyValueFilter() {
return new KeyValueFilter<>(ByteArrayCodec.INSTANCE, log);
}

protected abstract boolean isStruct();
Expand Down

0 comments on commit 2230a2d

Please sign in to comment.