Closed c-thiel closed 1 week ago
Alternatively we could expose the Hashmaps directly? Those would provide a few more accessors than any proxy type
Alternatively we could expose the Hashmaps directly? Those would provide a few more accessors than any proxy type
I'm not a big fan of exposing concrete underlying data structures directly. I think we have provided enough look up methods such as get by id, is there any cases that can't be satisfied?
I think we are good for now, thanks!
In
iceberg-rust
we currently have quite a fewIterators
over fields without a lightweight option to determine length. InLakekeeper
we have some places where we need to know the length of fields - especially for theIterators
used inTableMetadata
. Usingxx_iter().count()
isn't nice.It would be great if we could expose the
len
in a more straightforward way, either by explicit methods or by usingExactSizeIterator
as proposed in this PR.Let me know what you think!