Spanner/src/Batch/BatchSnapshot.php
public function executePartition(PartitionInterface $partition, array $options = [])
    {
        if ($partition instanceof QueryPartition) {
            return $this->executeQuery($partition);
        } elseif ($partition instanceof ReadPartition) {
            return $this->executeRead($partition);
        }

        throw new \BadMethodCallException('Unsupported partition type.');
    }
public function executePartition(PartitionInterface $partition, array $options = [])
    {
        if ($partition instanceof QueryPartition) {
            return $this->executeQuery($partition);
        } elseif ($partition instanceof ReadPartition) {
            return $this->executeRead($partition);
        }

        throw new \BadMethodCallException('Unsupported partition type.');
    }
public function executePartition ( PartitionInterface $ partition , array $ options = [ ] ) { if ( $ partition instanceof QueryPartition ) { return $ this -> executeQuery ( $ partition ) ; } elseif ( $ partition instanceof ReadPartition ) { return $ this -> executeRead ( $ partition ) ; } throw new \ BadMethodCallException ( 'Unsupported partition type.' ) ; }
Read rows from a partition.

Partitions are created by calling {@see Google\Cloud\Spanner\Batch\BatchSnapshot::partitionRead()}
or {@see Google\Cloud\Spanner\Batch\BatchSnapshot::partitionQuery()}.
Generally, those partitions will be distributed to worker processes, each
of which will call this method with the partition it was given.

Example:
```
$result = $snapshot->executePartition($partition);
```

@param PartitionInterface $partition The partition to read.
@param array $options Configuration Options.
@return Result
@throws \BadMethodCallException If an invalid partition type is given.
Read rows from a partition .