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

Allow DBCollections to be modified using raw/binary BSON.

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0
    • Affects Version/s: 2.6.5
    • Component/s: API, Performance
    • None
    • Minor Change

      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?

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

              Created:
              Updated:
              Resolved: