Closed rk3rn3r closed 5 years ago
Hey @leonchen83! I needed access to startOffset and endOffset for commands, so I made some changes to apply that to your code. I'm really looking forward to your feedback!
Best, René
@rk3rn3r
GenericKeyValueCommand
and GenericKeyCommand
are really good idea.
GenericCommand
with startOffset
and endOffset
need further considered.
I will change the related code about startOffset
and endOffset
in offset
branch. if done, please help review code.
Thank you! Sure, I will review once you are ready!
There are some more commands that could use some adjusting to aggregate some duplicate code. I just did it for key[] and byte[] and for introducing offsets.
@rk3rn3r
hi I submit a commit about command offset.
after this commit. we can get all Event
's offset. not only Command
offset. and get the offset when reading aof file and rdb file.
usage as following
AbstractEvent e = (AbstractEvent)event;
Tuple2<Long, Long> tuple = e.getContext().getOffsets();
That's pretty awesome. Thank you so much! <3
we need some time to test above commit(manual test, integration test, add new test case and etc). after about 2 weeks, we can release v3.3.0