[JAVA-5081] Support schema classes Created: 17/Jul/23  Updated: 24/Jul/23

Status: Backlog
Project: Java Driver
Component/s: Builders
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Unknown
Reporter: Maxim Katcharov Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-5080 Add chained wrappers for aggregation ... Backlog
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

In JAVA-3879, we added expressions related to documents. Expressions that refer to fields, like `doc.getInteger("fieldName")`, are some of the most frequently-needed, but are also relatively verbose.

In our documentation, our examples generally extract these into variables, `var fieldName = ...`. This can be further moved into fields on a custom class, which allows for syntax like `doc.fieldName` or `doc.getFieldName()`. This approach runs into problems when the API itself needs to create such objects (for example, in `map(o -> ...)`, o would be a new instance of a particular object), but a POC created during the recent hackathon resolves these issues.

This would be a non-invasive addition to the API that would make it more accessible for users.


Generated at Thu Feb 08 09:03:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.