PHP Класс Cassandra\DatatypeIntegrationTests

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

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

Метод Описание
createTable ( $type ) : string Create a table named for the CQL $type parameter
createTableInsertAndVerifyValueByIndex ( $type, $value ) Create a table using $type for the value's type and insert $value using positional parameters.
createTableInsertAndVerifyValueByName ( $type, $value ) Create a table using $type for the value's type and insert $value using named parameters.
createUserType ( $userType ) Create a user type in the current keyspace
scalarCassandraTypes ( ) Scalar Cassandra types to be used by data providers
typeString ( $type ) : string Generate a type string suitable for creating a new table or user type using CQL
userTypeString ( $userType ) : string Generate a user type name string suitable for creating a new table or user type using CQL

Защищенные методы

Метод Описание
createTableInsertAndVerifyValue ( $type, $options, $key, $value ) Create a new table with specified type and insert and verify value
insertValue ( $tableName, $options ) Insert a value into table
verifyValue ( $tableName, $type, $key, $value ) Verify value

Описание методов

createTable() публичный метод

Create a table named for the CQL $type parameter
public createTable ( $type ) : string
$type Cassandra\Type
Результат string Table name generated from $type

createTableInsertAndVerifyValue() защищенный метод

Create a new table with specified type and insert and verify value
protected createTableInsertAndVerifyValue ( $type, $options, $key, $value )
$type Cassandra\Type
$options Cassandra\ExecutionOptions
$key string
$value mixed

createTableInsertAndVerifyValueByIndex() публичный метод

Create a table using $type for the value's type and insert $value using positional parameters.
public createTableInsertAndVerifyValueByIndex ( $type, $value )
$type Cassandra\Type
$value mixed

createTableInsertAndVerifyValueByName() публичный метод

Create a table using $type for the value's type and insert $value using named parameters.
public createTableInsertAndVerifyValueByName ( $type, $value )
$type Cassandra\Type
$value mixed

createUserType() публичный метод

Create a user type in the current keyspace
public createUserType ( $userType )
$userType Cassandra\Type\UserType

insertValue() защищенный метод

Insert a value into table
protected insertValue ( $tableName, $options )
$tableName string
$options Cassandra\ExecutionOptions

scalarCassandraTypes() публичный метод

Scalar Cassandra types to be used by data providers

typeString() публичный статический метод

Generate a type string suitable for creating a new table or user type using CQL
public static typeString ( $type ) : string
$type Cassandra\Type
Результат string String representation of type

userTypeString() публичный статический метод

Generate a user type name string suitable for creating a new table or user type using CQL
public static userTypeString ( $userType ) : string
$userType Cassandra\Type
Результат string String representation of the UserType

verifyValue() защищенный метод

Verify value
protected verifyValue ( $tableName, $type, $key, $value )
$tableName string
$type Cassandra\Type
$key string
$value mixed