I'm using createReadStream to read rows from Bigtable. I want to do some pagination with the results so limit and offset are necessary. There's a limit option so that's great. However, I can't find a way to set offset. How should I go about it?
Using https://cloud.google.com/nodejs/docs/reference/bigtable/0.13.x/Table#createReadStream
start
is an option.
As you retrieve the first page. you can use the last row key to set the start for the next page
(will need to exclude the first result for all page counts > 1)
来源:https://stackoverflow.com/questions/49691823/bigtable-node-client-how-to-set-read-offset-for-pagination