A PHP representation of a keyspace

Implements

Methods

string

name

( )

Returns keyspace name

Returns:
Type Details
string

Name

string

replicationClassName

( )

Returns replication class name

Returns:
Type Details
string

Replication class

Cassandra\Map

replicationOptions

( )

Returns replication options

Returns:
Type Details
Cassandra\Map

Replication options

string

hasDurableWrites

( )

Returns whether the keyspace has durable writes enabled

Returns:
Type Details
string

Whether durable writes are enabled

Cassandra\Table

table

( string $name )

Returns a table by name

Parameters:
Name Type Details
$name string

Cassandra\Table name

Returns:
Type Details
Cassandra\Table
array

tables

( )

Returns all tables defined in this keyspace

Returns:
Type Details
array

An array of Table instances

Type\UserType null

userType

( string $name )

Get user type by name

Parameters:
Name Type Details
$name string

User type name

Returns:
Type Details
Type\UserType|null

A user type or null

array

userTypes

( )

Get all user types

Returns:
Type Details
array

An array of user types

MaterizedView null

materializedView

( string $name )

Get materialized view by name

Parameters:
Name Type Details
$name string

Materialized view name

Returns:
Type Details
MaterizedView|null

A materialized view or null

array

materializedViews

( )

Gets all materialized views

Returns:
Type Details
array

An array of materialized views

Cassandra\Function null

function

( string $name, mixed $params )

Get a function by name and signature

Parameters:
Name Type Details
$name string

Cassandra\Function name

$params string|Cassandra\Type

Cassandra\Function arguments

Returns:
Type Details
Function|null

A function or null

array

functions

( )

Get all functions

Returns:
Type Details
array

An array of functions

Cassandra\Aggregate null

aggregate

( string $name, mixed $params )

Get an aggregate by name and signature

Parameters:
Name Type Details
$name string

Cassandra\Aggregate name

$params string|Cassandra\Type

Cassandra\Aggregate arguments

Returns:
Type Details
Aggregate|null

An aggregate or null

array

aggregates

( )

Get all aggregates

Returns:
Type Details
array

An array of aggregates