-
Notifications
You must be signed in to change notification settings - Fork 178
FlatRowAdapter implementation of models.RowAdapter #2034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I think it would be better to keep the FlatRow abstraction in cloud-bigtable-client and instead pass a custom RowAdapter to readRowsCallable. This would keep the existing api stable w/o any performance loss |
|
Thanks @igorbernstein2 for review. I have added When get a chance please have a look!! |
...le-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowModelAdapter.java
Outdated
Show resolved
Hide resolved
...le-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowModelAdapter.java
Outdated
Show resolved
Hide resolved
igorbernstein2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Other then the nits, LGTM
...igtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowAdapter.java
Outdated
Show resolved
Hide resolved
...igtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowAdapter.java
Outdated
Show resolved
Hide resolved
...igtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowAdapter.java
Outdated
Show resolved
Hide resolved
...igtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowAdapter.java
Outdated
Show resolved
Hide resolved
...ble-client-core/src/test/java/com/google/cloud/bigtable/grpc/scanner/TestFlatRowAdapter.java
Show resolved
Hide resolved
...igtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowAdapter.java
Outdated
Show resolved
Hide resolved
...igtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/scanner/FlatRowAdapter.java
Outdated
Show resolved
Hide resolved
|
whenever you get time, Please have a look. |
igorbernstein2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added new operation
IBigtableDataClient#readRows(ReadRowsRequest)which currently returnResultScanner<Row>, with intend to delegateBigtableDataClient#readFlatRowfor vaneer client.Reason for raising this PR:
FlatRowandv2.models.Rowhas identical fields.v2.models.Row.Assumption:
RowCellhas same ordering asFlatRow.Cell.