Skip to content

Improvements to RowWithGetter #21634

@damccorm

Description

@damccorm

Various improvements to getValue(fieldIdx) in RowWithGetters mentioned here:]

  • Minimize memory overhead of cache using either a index lookup (array) or a single hash map if number of fields exceeds the initial hashmap capacity

  • The cache should be checked before calling a getter to avoid any potentially unnecessary conversion in the getter itself.

  • Nested rows should be cached, otherwise the cache of such nested rows can't be leveraged.

  • Handling of collections / maps / iterables can be significantly improved by simply skipping the transform in all cases where getValue for members is the identity transform

Imported from Jira BEAM-14166. Original Jira may contain additional context.
Reported by: mosche.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions