Example #1
0
 public static function fromBsonP3($bson)
 {
     $result = new VTShardReference();
     if (array_key_exists('Name', $bson)) {
         $result->name = $bson['Name'];
     }
     if (array_key_exists('KeyRange', $bson)) {
         $result->keyRange = VTKeyRange::fromBsonP3($bson['KeyRange']);
     }
     return $result;
 }
Example #2
0
 public function streamExecuteKeyRanges(VTContext $ctx, $query, $keyspace, array $key_ranges, array $bind_vars, $tablet_type)
 {
     return $this->callStreamExecute($ctx, $query, $bind_vars, $tablet_type, 'VTGateP3.StreamExecuteKeyRanges2', array('Keyspace' => $keyspace, 'KeyRanges' => VTKeyRange::buildBsonP3Array($key_ranges)));
 }