public function setBatchSize($value)
    {
        if (!is_int($value) || (int) $value <= 0) {
            throw new ClientException('Batch size should be a positive integer');
        }

        $this->_batchSize = (int) $value;
    }
public function setBatchSize($value)
    {
        if (!is_int($value) || (int) $value <= 0) {
            throw new ClientException('Batch size should be a positive integer');
        }

        $this->_batchSize = (int) $value;
    }
public function setBatchSize ( $ value ) { if ( ! is_int ( $ value ) || ( int ) $ value <= 0 ) { throw new ClientException ( 'Batch size should be a positive integer' ) ; } $ this -> _batchSize = ( int ) $ value ; }
Set the batch size for the statement

The batch size is the number of results to be transferred
in one server round-trip. If a query produces more results
than the batch size, it creates a server-side cursor that
provides the additional results.

The server-side cursor can be accessed by the client with subsequent HTTP requests.

@throws ClientException

@param int $value - batch size value

@return void
Set the batch size for the statement