Spanner/src/SpannerClient.php
public function batch($instanceId, $databaseId)
    {
        $operation = new Operation(
            $this->connection,
            $this->returnInt64AsObject
        );

        return new BatchClient(
            $operation,
            GapicSpannerClient::databaseName(
                $this->projectId,
                $instanceId,
                $databaseId
            )
        );
    }
public function batch($instanceId, $databaseId)
    {
        $operation = new Operation(
            $this->connection,
            $this->returnInt64AsObject
        );

        return new BatchClient(
            $operation,
            GapicSpannerClient::databaseName(
                $this->projectId,
                $instanceId,
                $databaseId
            )
        );
    }
public function batch ( $ instanceId , $ databaseId ) { $ operation = new Operation ( $ this -> connection , $ this -> returnInt64AsObject ) ; return new BatchClient ( $ operation , GapicSpannerClient :: databaseName ( $ this -> projectId , $ instanceId , $ databaseId ) ) ; }
Get a Batch Client.

Batch Clients allow you to execute reads of very large data sets, spread
across multiple partitions.

Example:
```
$batch = $spanner->batch('instance-id', 'database-id');
```

@param string $instanceId The instance to connect to.
@param string $databaseId The database to connect to.
@return BatchClient
Get a Batch Client .