Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-652

Expose sync points in DataFileReader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0
    • java
    • None
    • Reviewed

    Description

      DataFileReader.blockStart is hidden from the caller, but exposing it (as readonly) would allow callers to discover sync points in a file by watching it for changes.

      seek(long) only takes an exact block boundary, while sync(long) moves to the next block boundary. There does not appear to be a way to rediscover points that you can seek() to, which would be very useful for building or recovering an index for a file.

      Attachments

        Activity

          People

            stuhood Stu Hood
            stuhood Stu Hood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: