Open kirakira opened 5 years ago
There seem to be an example of reading a file in Riegeli format at Benchmarks::ReadRiegeli.
Thanks, I was hoping the examples to be more discoverable, but this is good enough to me.
RecordWriter
and RecordReader
would be the class to use.
https://github.com/google/riegeli/blob/master/riegeli/records/record_writer.h#L477
And the python API has a minimum example: https://github.com/google/riegeli/blob/master/python/riegeli/records/examples/write_read_records.py
+1. The templated headers are tricky to read, and many of the tests have indirection that makes common use cases difficult to figure out. e.g. How do you read a CSV file?
Could you give an example of writing records to a file and reading the data back? I'm reading the code but the API seems fairly complex..