final class DefaultKeyspace implements Keyspace (View source)

A PHP representation of a keyspace

Methods

string
name()

Returns keyspace name

string
replicationClassName()

Returns replication class name

Map
replicationOptions()

Returns replication options

string
hasDurableWrites()

Returns whether the keyspace has durable writes enabled

Table|null
table(string $name)

Returns a table by name

array
tables()

Returns all tables defined in this keyspace

UserType|null
userType(string $name)

Get user type by name

array
userTypes()

Get all user types

materializedView(string $name)

Get materialized view by name

array
materializedViews()

Gets all materialized views

Function_|null
function_(string $name, string|Type ...$params)

Get a function by name and signature

array
functions()

Get all functions

Aggregate|null
aggregate(string $name, string|Type ...$params)

Get an aggregate by name and signature

array
aggregates()

Get all aggregates

Details

string name()

Returns keyspace name

Return Value

string Name

string replicationClassName()

Returns replication class name

Return Value

string

Replication class

Map replicationOptions()

Returns replication options

Return Value

Map

Replication options

string hasDurableWrites()

Returns whether the keyspace has durable writes enabled

Return Value

string

Whether durable writes are enabled

Table|null table(string $name)

Returns a table by name

Parameters

string $name

Table name

Return Value

Table|null

Table instance or null

array tables()

Returns all tables defined in this keyspace

Return Value

array

An array of Table instances

UserType|null userType(string $name)

Get user type by name

Parameters

string $name

User type name

Return Value

UserType|null

A user type or null

array userTypes()

Get all user types

Return Value

array

An array of user types

MaterializedView|null materializedView(string $name)

Get materialized view by name

Parameters

string $name

Materialized view name

Return Value

MaterializedView|null

A materialized view or null

array materializedViews()

Gets all materialized views

Return Value

array

An array of materialized views

Function_|null function_(string $name, string|Type ...$params)

Get a function by name and signature

Parameters

string $name

Function name

string|Type ...$params

Function arguments

Return Value

Function_|null

A function or null

array functions()

Get all functions

Return Value

array

An array of functions

Aggregate|null aggregate(string $name, string|Type ...$params)

Get an aggregate by name and signature

Parameters

string $name

Aggregate name

string|Type ...$params

Aggregate arguments

Return Value

Aggregate|null

An aggregate or null

array aggregates()

Get all aggregates

Return Value

array

An array of aggregates