Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-5910

FileSystems should retrieve lastModified time

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.11.0
    • sdk-java-core

    Description

      In the Java SDK, the Filesystems.match facilities are aimed at listing file names and collect very limited additional metadata from the filesystem (sizeBytes and isReadSeekEfficient). I propose adding a new field for lastModified time to MatchResult.Metadata that each FileSystem would populate when listing files.

      This would be a basis for a future improvement to FileIO.match(...).continuously(...) where we could let the user opt to poll not just for new file names, but also for existing file names if their content has been updated.

      In the near term, the addition of lastModified to Metadata would allow users to implement their own polling logic on top of Filesystems.match to detect and download new files from any of the supported filesystems.

      Attachments

        Issue Links

          Activity

            People

              jeff.klukas@gmail.com Jeff Klukas
              jeff.klukas@gmail.com Jeff Klukas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4.5h
                  4.5h