mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
67fffe676e
The spirit of StreamInput/StreamOutput is that common I/O patterns should be handled by these classes so that the persistence methods in application classes can be kept short, which facilitates easy visual comparison between read and write methods, and reduces risks of having serialization issues due to mismatched implementations. To this end, this change adds readOptionalVLong and writeOptionalVLong methods to these classes as we have started to build up cases where that conditional/null logic has been implemented directly in the read & write methods. Co-authored-by: Tim Vernum <tim.vernum@elastic.co>