PHP Класс Cassandra\TimestampIntegrationTest

Наследование: extends BasicIntegrationTest
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )