You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume you mean Record{Reader,Writer}. Yes, it seems to be a good starting point.
Yes, there should be a riegeli::{Reader,Writer} adapting a java.io.{Input,Output}Stream (perhaps called riegeli::Java{Reader,Writer}), like riegeli::Python{Reader,Writer}. Given the API of Java streams (read/write functions which copy pieces of data to/from arrays, as opposed to e.g. providing pointers to buffers owned by the streams — which would not work well across Java/C++ anyway), they too should derive from riegeli::Buffered{Reader,Writer}.
I don’t know how random access should be supported. In Riegeli this is an optional functionality of a Reader (and also Writer, but that is rarely useful). I am not familiar enough with Java to know one typically expresses a random access input stream. There is java.io.RandomAccessFile, but it is file-specific. There is java.nio.channels.SeekableByteChannel, but channels are a separate class hierarchy from streams — are streams or channels recommended? Initially we can ignore random access (and skip wrap functions which require it, like riegeli::RecordReader::Seek()), but eventually something should be done with that.
The Python wrapper ignores the possibility of substituting a custom ChunkWriter (and a ChunkReader is not really substitutable even in C++, because it lacks a separate interface and implementation). This will be fine in Java as well.
Hi everyone, just curious how is the progress, I am also looking for Java support for riegeli, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a draft implementation to JNI binding.
Major questions for the next step: