| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- Add MultiFieldPojoImplementation static class following the existing PojoImplementation and RecordImplementation pattern - Add createForPojoByNames() factory for projecting multiple POJO fields by name into a Record - Add createForPojoByIndexes() factory for projecting POJO fields by their declared index into a Record - Restore RecordImplementation and createRecordJavaImplementation for consistency with the original codebase style - Add 9 new tests covering multi-field by name, by index, field reordering, null values, out-of-bounds, and nonexistent field error cases
|
@zkaoudi I see you asked me for review, what's the intended usage here for POJOs? I think implementation in the PR is fine but I have some concerns about the type system, in the PR we wrap the output in Record but I assume that the output of the operator also wraps in Record would this be intended behaviour? |
Sorry, something went wrong.
|
Hi, would it be possible for you to implement an integration test for you multi POJOs? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
issue#649 Revise implementation to support multiple field projection, by names
Plan
Add a new MultiFieldPojoImplementation class following the same pattern as the existing PojoImplementation and RecordImplementation. It takes multiple field names, extracts each field from the input POJO via reflection, and packs the values into a Record.
Expose it through two new factory methods — one for field names, one for indexes — and keep the existing single-field path untouched for backward compatibility. The existing constructor routes automatically: