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. .github/
  2. .travis/
  3. doc/
  4. lang/
  5. share/
  6. .asf.yaml
  7. .editorconfig
  8. .gitignore
  9. .travis.yml
  10. .yamllint.yml
  11. BUILD.md
  12. build.sh
  13. composer.json
  14. DIST_README.txt
  15. docker-compose.yml
  16. LICENSE.txt
  17. NOTICE.txt
  18. pom.xml
  19. README.md
README.md

Build Status

Apache Avro™

Apache Avro™ is a data serialization system.

Learn more about Avro, please visit our website at:

https://avro.apache.org/

To contribute to Avro, please read:

https://cwiki.apache.org/confluence/display/AVRO/How+To+Contribute