Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-429

Allow DBCollections to be modified using raw/binary BSON.

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.6.5
    • 2.8.0
    • API, Performance
    • None
    • Minor Change

    Description

      For any case where DBCollection takes a DBObject i would like to be able to pass raw/binary BSON, rather than build a concrete DBObject object such as BasicDBObject.

      For my usecase i need to serialize DBObjects offline before i eventually update/insert them into DBCollection.

      So rather than serialize offline, then deserialize, then build a DBObject, then call DBCollection, which then serializes the DBObject to BSON for transport over-the-wire to the Mongodb, i would rather serialize offline directly to binary BSON, then pass the BSON directly to DBCollection.

      It appears that RawDBObject is exactly what i need, but there is no public constructor and no usage doc or any tests that i can see?

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            marko Marko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: