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

Allow DBCollections to be modified using raw/binary BSON.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.5
    • Fix Version/s: 2.8.0
    • Component/s: API, Performance
    • Labels:
      None
    • Backwards Compatibility:
      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

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

              Dates

              Created:
              Updated:
              Resolved: