-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a required change to be able to use parts of the row, even if we cannot deserialize some column values. Also, lazy deserialization is a plus on its own. To accomplish this, similar to the Java client, I have changed the code so that, we try to deserialize column values when we call `get_object` or `get_object_with_index`. Note that, just like the Java client ``` row.get_object("smth") row.get_object("smth") ``` will result in two deserializations. We could easily solve this with an extra object per row (something like LazyDeserializable class with two fields: serialized and deserialized where once we deserialize it, it assigns the result to deserialized and return it for the subsequent calls). But, I didn't want to go that way due to extra object cost.
- Loading branch information
Showing
2 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters