PHP 클래스 Cassandra\TimestampIntegrationTest

상속: extends BasicIntegrationTest
파일 보기 프로젝트 열기: datastax/php-driver

공개 메소드들

메소드 설명
setUp ( ) Create the table and client side timestamp session for the timestamp tests.
testBatchStatement ( ) Batch statement timestamps
testPreparedStatement ( ) Prepared statement timestamps
testSimpleStatement ( ) Simple statement timestamps

비공개 메소드들

메소드 설명
assert ( $key, $expectedTimestamp, boolean $isEqual = true ) Assert the timestamp for a given key in the table against the value_int.
getTimestamp ( $key ) : integer Get the write time for a given key in the table.
insert ( cassandra\Session $session, cassandra\Statement $statement, integer $key = null, integer $value = null, mixed $timestamp = null ) Insert a key/value into the table. If the key, value, or timestamp is null it will not be added to the execution options for the statement.
now ( ) : integer Get the current time in microseconds.
serverNow ( ) : integer Get the current server time in microseconds.

메소드 상세

setUp() 공개 메소드

Create the table and client side timestamp session for the timestamp tests.
public setUp ( )

testBatchStatement() 공개 메소드

This test will ensure that the PHP driver supports timestamps using batch statements; client, server, and forced (option and using) timestamps are executed.
public testBatchStatement ( )

testPreparedStatement() 공개 메소드

This test will ensure that the PHP driver supports timestamps using prepared statements; client, server, and forced (option and using) timestamps are executed.

testSimpleStatement() 공개 메소드

This test will ensure that the PHP driver supports timestamps using simple statements; client, server, and forced (option and using) timestamps are executed.
public testSimpleStatement ( )