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

MongoDbIO add support for projection

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.10.0
    • Component/s: io-java-mongodb
    • Labels:

      Description

      MongoDbIO.read should have support for Projection, so that we can limit the document size that is retrieved, for example:

       

      pipeline.apply(tableName + " read", MongoDbIO.read()
      .withUri("mongodb://" + srcMongodbManagment.getMongodbConnection())
      .withProjection("time")
      .withDatabase(options.getDBName())
      .withKeepAlive(true)
      .withCollection(tableName))

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                Turkel Chaim
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Time Spent - 40m Remaining Estimate - 23h 20m
                  23h 20m
                  Logged:
                  Time Spent - 40m Remaining Estimate - 23h 20m
                  40m