PHP Class Cassandra\DefaultSession

See also: Cassandra\Session
Inheritance: implements cassandra\Session
Show file Open project: datastax/php-driver

Public Methods

Method Description
close ( float | null $timeout = null ) : void {@inheritDoc}
closeAsync ( ) : cassandra\Future {@inheritDoc}
execute ( cassandra\Statement $statement, ExecutionOptions $options = null ) : Rows {@inheritDoc}
executeAsync ( cassandra\Statement $statement, ExecutionOptions $options = null ) : cassandra\Future {@inheritDoc}
metrics ( ) : array {@inheritDoc}
prepare ( string $cql, ExecutionOptions $options = null ) : PreparedStatement {@inheritDoc}
prepareAsync ( string $cql, ExecutionOptions $options = null ) : cassandra\Future {@inheritDoc}
schema ( ) : cassandra\Schema {@inheritDoc}

Method Details

close() public method

{@inheritDoc}
public close ( float | null $timeout = null ) : void
$timeout float | null Timeout to wait for closure in seconds
return void

closeAsync() public method

{@inheritDoc}
public closeAsync ( ) : cassandra\Future
return cassandra\Future future

execute() public method

{@inheritDoc}
public execute ( cassandra\Statement $statement, ExecutionOptions $options = null ) : Rows
$statement cassandra\Statement statement to be executed
$options ExecutionOptions execution options (optional)
return Rows execution result

executeAsync() public method

{@inheritDoc}
public executeAsync ( cassandra\Statement $statement, ExecutionOptions $options = null ) : cassandra\Future
$statement cassandra\Statement statement to be executed
$options ExecutionOptions execution options (optional)
return cassandra\Future future result

metrics() public method

{@inheritDoc}
public metrics ( ) : array
return array Performance/Diagnostic metrics.

prepare() public method

{@inheritDoc}
public prepare ( string $cql, ExecutionOptions $options = null ) : PreparedStatement
$cql string CQL statement string
$options ExecutionOptions execution options (optional)
return PreparedStatement prepared statement

prepareAsync() public method

{@inheritDoc}
public prepareAsync ( string $cql, ExecutionOptions $options = null ) : cassandra\Future
$cql string CQL string to be prepared
$options ExecutionOptions preparation options
return cassandra\Future statement

schema() public method

{@inheritDoc}
public schema ( ) : cassandra\Schema
return cassandra\Schema current schema.