PHP 클래스 Cassandra\SchemaMetadataIntegrationTest

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

공개 메소드들

메소드 설명
setUp ( ) Setup the schema metadata for the schema metadata tests.
testBasicSchemaMetadata ( ) Schema metadata support is available; basic test.
testClusteringKeyMaterializedViews ( ) Schema metadata to validate a materialized view exist when using a clustering key
testCollectionSecondaryIndexes ( ) Schema metadata to validate collection secondary indexes exist
testDisableSchemaMetadata ( ) Schema metadata support can be disabled.
testDropMaterializedViews ( ) Schema metadata to validate materialized views are dropped correctly
testDropUserDefinedAggregates ( ) Schema metadata to validate UDAs are dropped correctly
testDropUserDefinedFunctions ( ) Schema metadata to validate UDFs are dropped correctly
testEnumerateKeyspaces ( ) Enumerate over keyspaces in schema metadata.
testEnumerateTablesAndColumns ( ) Enumerate over tables and columns in schema metadata.
testGetColumnIndexOptions ( ) Get index options metadata from a column
testGetKeyspaceByName ( ) Get keyspace from schema metadata using keyspace name.
testGetTableAndColumnByName ( ) Get tables and columns from schema metadata using their names.
testIteratorMaterializedViews ( ) Schema metadata to validate materialized views exist using iterator
testIteratorSecondaryIndexes ( ) Schema metadata to validate secondary indexes exist using iterator
testIteratorUserDefinedAggregates ( ) Schema metadata to validate UDAs exist using iterator
testIteratorUserDefinedFunctions ( ) Schema metadata to validate UDFs exist using iterator
testMaterializedViews ( ) Schema metadata to validate a simple materialized view exist
testNoMaterializedViews ( ) Schema metadata to validate no materialized views exist
testNoSecondaryIndexes ( ) Schema metadata to validate no secondary indexes exist
testNoUserDefinedAggregates ( ) Schema metadata to validate no UDAs exist
testNoUserDefinedFunctions ( ) Schema metadata to validate no UDFs exist
testPrimaryKeyMaterializedViews ( ) Schema metadata to validate a materialized view exist when using a primary key
testSchemaMetadataWithNestedColumnTypes ( ) Schema metadata data with deeply nested collection.
testSchemaMetadataWithNullFields ( ) Schema metadata data with null fields.
testSecondaryIndexes ( ) Schema metadata to validate secondary indexes exist
testUserDefinedAggregates ( ) Schema metadata to validate a UDA exist
testUserDefinedFunctions ( ) Schema metadata to validate a UDF exist
testVersion ( ) Schema metadata versioning

보호된 메소드들

메소드 설명
assertAggregateUserDefinedFunction ( ) Assert the uda_udf_final function
assertIndex ( $index, $kind, $target, $className, $isCustom ) Assert the index instance
assertMaterializedView ( $materializedView, $name, $tableName, $columns, $partitionKeyColumns, $clusteringKeyColumns ) Assert the materialized view (not all elements)
assertMaterializedViewsEqual ( $materializedViewOne, $materializedViewTwo ) Assert the materialized views are equal
assertUserDefinedAggregate ( ) Assert the user_defined_aggregate aggregate
assertUserDefinedFunction ( ) Assert the user_defined_function function
assertUserDefinedFunctionsEqual ( $name, $function ) Assert the UDFs are equal
createClusteringKeyMaterializedView ( ) Create the primary key materialized view using the second table
createCollectionSecondaryIndex ( ) Create the collections secondary index using the table
createKeyspace ( $keyspaceName, $replicationFactor = 1 )
createKeyspaceWithSchema ( $keyspaceName, $tableSchemas )
createPrimaryKeyMaterializedView ( ) Create the primary key materialized view using the second table
createSimpleMaterializedView ( ) Create the simple materialized view using the first table
createSimpleSecondaryIndex ( ) Create the simple secondary index using the table
createTableForSecondaryIndexes ( ) Create the table for the secondary indexes
createTablesForMaterializedViews ( ) Create the tables for the materialized views
createUserDefinedAggregate ( ) Create the user defined aggregate and two user defined functions for the associated aggregate
createUserDefinedFunction ( ) Create the user defined function
generateKeyspaceName ( $prefix )

메소드 상세

assertAggregateUserDefinedFunction() 보호된 메소드

Assert the uda_udf_final function

assertIndex() 보호된 메소드

Assert the index instance
protected assertIndex ( $index, $kind, $target, $className, $isCustom )
$index Index to assert against
$kind Kind to assert
$target Target (and index->option('target')) to assert for index->target()
$className Boolean or string value to assert for index->className
$isCustom Value of index->isCustom() to assert

assertMaterializedView() 보호된 메소드

Assert the materialized view (not all elements)
protected assertMaterializedView ( $materializedView, $name, $tableName, $columns, $partitionKeyColumns, $clusteringKeyColumns )
$materializedView Materialized view to validate
$name Name to assert
$tableName Table name to assert
$columns Columns names to assert
$partitionKeyColumns Primary key column names to assert
$clusteringKeyColumns Cluster key column names to assert

assertMaterializedViewsEqual() 보호된 메소드

Assert the materialized views are equal
protected assertMaterializedViewsEqual ( $materializedViewOne, $materializedViewTwo )
$materializedViewOne First materialized view
$materializedViewTwo Second materialized view

assertUserDefinedAggregate() 보호된 메소드

Assert the user_defined_aggregate aggregate

assertUserDefinedFunction() 보호된 메소드

Assert the user_defined_function function

assertUserDefinedFunctionsEqual() 보호된 메소드

Assert the UDFs are equal
protected assertUserDefinedFunctionsEqual ( $name, $function )
$name Name of user defined function to look up and compare
$function User defined function to compare

createClusteringKeyMaterializedView() 보호된 메소드

Create the primary key materialized view using the second table

createCollectionSecondaryIndex() 보호된 메소드

Create the collections secondary index using the table

createKeyspace() 보호된 메소드

protected createKeyspace ( $keyspaceName, $replicationFactor = 1 )

createKeyspaceWithSchema() 보호된 메소드

protected createKeyspaceWithSchema ( $keyspaceName, $tableSchemas )

createPrimaryKeyMaterializedView() 보호된 메소드

Create the primary key materialized view using the second table

createSimpleMaterializedView() 보호된 메소드

Create the simple materialized view using the first table

createSimpleSecondaryIndex() 보호된 메소드

Create the simple secondary index using the table

createTableForSecondaryIndexes() 보호된 메소드

Create the table for the secondary indexes

createTablesForMaterializedViews() 보호된 메소드

Create the tables for the materialized views

createUserDefinedAggregate() 보호된 메소드

Create the user defined aggregate and two user defined functions for the associated aggregate

createUserDefinedFunction() 보호된 메소드

Create the user defined function

generateKeyspaceName() 보호된 정적인 메소드

protected static generateKeyspaceName ( $prefix )

setUp() 공개 메소드

Setup the schema metadata for the schema metadata tests.
public setUp ( )

testBasicSchemaMetadata() 공개 메소드

This test will ensure that the PHP driver supports schema metadata.

testClusteringKeyMaterializedViews() 공개 메소드

This test ensures that materialized views are properly handled by the driver.

testCollectionSecondaryIndexes() 공개 메소드

This test ensures that secondary indexes are properly handled by the driver.

testDisableSchemaMetadata() 공개 메소드

This test will ensure that the PHP driver supports the ability to enable and disable the schema metadata when creating a session object.

testDropMaterializedViews() 공개 메소드

This test ensures that materialized views are properly handled by the driver.

testDropUserDefinedAggregates() 공개 메소드

This test ensures that UDAs are properly handled by the driver.

testDropUserDefinedFunctions() 공개 메소드

This test ensures that UDFs are properly handled by the driver.

testEnumerateKeyspaces() 공개 메소드

This test ensures that driver correctly enumerates over keyspace metadata.

testEnumerateTablesAndColumns() 공개 메소드

This test ensures that driver correctly enumerates over table and column metadata.

testGetColumnIndexOptions() 공개 메소드

This test ensures that index options metadata are properly returned from an indexed column.

testGetKeyspaceByName() 공개 메소드

This test ensures that the driver is able to access keyspace metadata by name.

testGetTableAndColumnByName() 공개 메소드

This test ensures that the driver is able to access table and column metadata by name.

testIteratorMaterializedViews() 공개 메소드

This test ensures that materialized views are properly handled by the driver.

testIteratorSecondaryIndexes() 공개 메소드

This test ensures that secondary indexes are properly handled by the driver.

testIteratorUserDefinedAggregates() 공개 메소드

This test ensures that UDAs are properly handled by the driver.

testIteratorUserDefinedFunctions() 공개 메소드

This test ensures that UDFs are properly handled by the driver.

testMaterializedViews() 공개 메소드

This test ensures that materialized views are properly handled by the driver.

testNoMaterializedViews() 공개 메소드

This test ensures that materialized views are properly handled by the driver.

testNoSecondaryIndexes() 공개 메소드

This test ensures that secondary indexes are properly handled by the driver.

testNoUserDefinedAggregates() 공개 메소드

This test ensures that UDAs are properly handled by the driver.

testNoUserDefinedFunctions() 공개 메소드

This test ensures that UDFs are properly handled by the driver.

testPrimaryKeyMaterializedViews() 공개 메소드

This test ensures that materialized views are properly handled by the driver.

testSchemaMetadataWithNestedColumnTypes() 공개 메소드

This test ensures that the validator parser correctly parses and builds columns with deeply nested collection types.

testSchemaMetadataWithNullFields() 공개 메소드

This test ensures that table and column metadata with null fields are returned correctly.

testSecondaryIndexes() 공개 메소드

This test ensures that secondary indexes are properly handled by the driver.

testUserDefinedAggregates() 공개 메소드

This test ensures that UDAs are properly handled by the driver.

testUserDefinedFunctions() 공개 메소드

This test ensures that UDFs are properly handled by the driver.

testVersion() 공개 메소드

This test ensures that schema metadata has a version identifier to quickly determine if one schema is different than another.
public testVersion ( )