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

Obtain metadata field at once in file system's IO connectors

Details

    • Improvement
    • Status: Open
    • P2
    • Resolution: Unresolved
    • None
    • 3.0.0
    • io-py-common
    • None

    Description

      This tasks involves refactoring and improvements of IO connectors' file metadata related methods (GcsIO, S3IO, BlobIO, hadoop).

      Currently, we have individual methods like size, last_updated, checksum, and others. Each one would make a HTTP request in order to get the specific metadata field. If one needs to gather multiple metadata fields, then every specific method are called and making multiple requests under the hood. Actually, the HTTP response contains multiple file metadata fields but each time only one field is collected and others are discarded.

      We should have a public method that returns a named tuple which contains multiple file metadata fields. In its implementation it only makes one request, as existing methods for single metadata field. 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            yihu Yi Hu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: