Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rahulKQL
Copy link
Contributor

Refactoring ReadRowsRequest creation into a new RequestWithScanValueProvider. Now request.get() would have two different get()

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 13, 2018
}
ReadRowsRequest.Builder builder = Adapters.SCAN_ADAPTER.adapt(scan, readHooks);
request = StaticValueProvider.of(readHooks.applyPreSendHook(builder.build()));
request = new RequestWithScanValueProvider(scan.getStartRow(), scan.getStopRow(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a BIgtableExtendedScan that needs to be considered here. This approach doesn't seem like it would work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we will need to convert the Scan to a Filter and RowSet, even though we don't have all of the information that Query needs.

@igorbernstein2
Copy link
Collaborator

Question, would it not be easier to just use a valueprovider for the entire configuration object?

@sduskis
Copy link
Contributor

sduskis commented Dec 14, 2018

@igorbernstein2, Scans are not easily serializable, so we need to figure out how to serialize them.

@igorbernstein2
Copy link
Collaborator

@sduskis
Copy link
Contributor

sduskis commented Dec 14, 2018

@igorbernstein2, we hade a problem at one point, but that was related to classpath issues. Now that we use hbase-client-shaded, it ought to work.

@rahulKQL
Copy link
Contributor Author

Initial Implementation with BigtableExtendedScan, Considered RowSet of scan object in CloudBigtableScanConfiguration constructor, I would consider filter as well in the RequestWithtTableNameValueProvider but wanted it to be reviewed first.

@rahulKQL
Copy link
Contributor Author

@sduskis
Whenever you have time, Please have a look and let me know about this approach. If this seems fine then I would add Filter to RequestWithtTableNameValueProvider.

@sduskis
Copy link
Contributor

sduskis commented Dec 24, 2018

I think that something is being lost in translation. This doesn't look right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants