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

MongoDbIO add support for projection

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.8.0
    • 2.10.0
    • io-java-mongodb

    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

              jbonofre Jean-Baptiste Onofré
              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