[JAVA-1526] More codec/generic support Created: 29/Oct/14  Updated: 30/Oct/14  Resolved: 30/Oct/14

Status: Closed
Project: Java Driver
Component/s: Async
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Nick Scavelli Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-1325 Implement new API for queries and upd... Closed

 Description   

Currently when I pass in a Codec to retrieve a collection I am still required to convert things to Document.

It would be nice if the entire API was generic so things like MongoView#find accepted type T.

Here is a simple stab at it http://git.io/d3j2UA



 Comments   
Comment by Nick Scavelli [ 29/Oct/14 ]

Awesome, I would close this as a dup, but doesn't look like I can.

Comment by Jeffrey Yemin [ 29/Oct/14 ]

It's coming. See JAVA-1325.

Comment by Nick Scavelli [ 29/Oct/14 ]

I just took a look at the normal driver, and looks like it's been solved, slightly differently. Definitely some inconsitencies, but either way it would be nice to be able to do this for the async client.

Generated at Thu Feb 08 08:54:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.