AVRO-2891: Expose last sync offset written on DataFileWriter (#954)

* AVRO-2891: Add code and tests for lastSync API

* AVRO-2891: simplify tests

Tests now only validate equivalence of sync markers between DataFileWriter and Reader. Remove additional test validating that a specific row can be read using the sync returned from DataFileWriter since it is somewhat redundant.

* AVRO-2891: revert change to cmakelists.txt

The original change was needed to cmakelists.txt due to linker errors
faced when using the standard build instructions.

* add another test to highlight efficient read of avro record using the
new API

* add few more comments to the new test

* Change API name as per PR feedback

Co-authored-by: Krishnan Sundaram <krishs@microsoft.com>
3 files changed
tree: f3269fcdb1609d8a4ecc1ce508f60624d9c823b7
  1. .asf.yaml
  2. .editorconfig
  3. .github/
  4. .gitignore
  5. .travis.yml
  6. .travis/
  7. .yamllint.yml
  8. BUILD.md
  9. DIST_README.txt
  10. LICENSE.txt
  11. NOTICE.txt
  12. README.md
  13. build.sh
  14. composer.json
  15. doc/
  16. docker-compose.yml
  17. lang/
  18. pom.xml
  19. share/

Build Status

Apache Avro™

Apache Avro™ is a data serialization system.

Learn more about Avro, please visit our website at:


To contribute to Avro, please read: