public function streamExecuteKeyRanges(Context $ctx, $query, $keyspace, array $key_ranges, array $bind_vars, $tablet_type) { $request = new Proto\Vtgate\StreamExecuteKeyRangesRequest(); $request->setQuery(ProtoUtils::BoundQuery($query, $bind_vars)); $request->setKeyspace($keyspace); ProtoUtils::addKeyRanges($request, $key_ranges); $request->setTabletType($tablet_type); if ($ctx->getCallerId()) { $request->setCallerId($ctx->getCallerId()); } $call = $this->client->streamExecuteKeyRanges($ctx, $request); return new StreamCursor($call); }