Cassandra\Cluster object is used to create Sessions.

Extended by

Methods

string

name

( )

Returns the name of this type as string.

Returns:
Type Details
string

Name of this type

string

__toString

( )

Returns string representation of this type.

Returns:
Type Details
string

String representation of this type

static Cassandra\Type

ascii

( )

Get representation of ascii type

Static
This method is static
Returns:
Type Details
Cassandra\Type

ascii type

static Cassandra\Type

bigint

( )

Get representation of bigint type

Static
This method is static
Returns:
Type Details
Cassandra\Type

bigint type

static Cassandra\Type

smallint

( )

Get representation of smallint type

Static
This method is static
Returns:
Type Details
Cassandra\Type

smallint type

static Cassandra\Type

tinyint

( )

Get representation of tinyint type

Static
This method is static
Returns:
Type Details
Cassandra\Type

tinyint type

static Cassandra\Type

blob

( )

Get representation of blob type

Static
This method is static
Returns:
Type Details
Cassandra\Type

blob type

static Cassandra\Type

boolean

( )

Get representation of boolean type

Static
This method is static
Returns:
Type Details
Cassandra\Type

boolean type

static Cassandra\Type

counter

( )

Get representation of counter type

Static
This method is static
Returns:
Type Details
Cassandra\Type

counter type

static Cassandra\Type

decimal

( )

Get representation of decimal type

Static
This method is static
Returns:
Type Details
Cassandra\Type

decimal type

static Cassandra\Type

double

( )

Get representation of double type

Static
This method is static
Returns:
Type Details
Cassandra\Type

double type

static Cassandra\Type

duration

( )

Get representation of duration type

Static
This method is static
Returns:
Type Details
Cassandra\Type

duration type

static Cassandra\Type

float

( )

Get representation of float type

Static
This method is static
Returns:
Type Details
Cassandra\Type

float type

static Cassandra\Type

int

( )

Get representation of int type

Static
This method is static
Returns:
Type Details
Cassandra\Type

int type

static Cassandra\Type

text

( )

Get representation of text type

Static
This method is static
Returns:
Type Details
Cassandra\Type

text type

static Cassandra\Type

timestamp

( )

Get representation of timestamp type

Static
This method is static
Returns:
Type Details
Cassandra\Type

timestamp type

static Cassandra\Type

date

( )

Get representation of date type

Static
This method is static
Returns:
Type Details
Cassandra\Type

date type

static Cassandra\Type

time

( )

Get representation of time type

Static
This method is static
Returns:
Type Details
Cassandra\Type

time type

static Cassandra\Type

uuid

( )

Get representation of uuid type

Static
This method is static
Returns:
Type Details
Cassandra\Type

uuid type

static Cassandra\Type

varchar

( )

Get representation of varchar type

Static
This method is static
Returns:
Type Details
Cassandra\Type

varchar type

static Cassandra\Type

varint

( )

Get representation of varint type

Static
This method is static
Returns:
Type Details
Cassandra\Type

varint type

static Cassandra\Type

timeuuid

( )

Get representation of timeuuid type

Static
This method is static
Returns:
Type Details
Cassandra\Type

timeuuid type

static Cassandra\Type

inet

( )

Get representation of inet type

Static
This method is static
Returns:
Type Details
Cassandra\Type

inet type

static Cassandra\Type

collection

( Cassandra\Type $type )

Initialize a Type\Collection type

<?php
use Type;

$collection = Type::collection(Type::int())
                  ->create(1, 2, 3, 4, 5, 6, 7, 8, 9);

var_dump($collection);
Static
This method is static
Parameters:
Name Type Details
$type Cassandra\Type

The type of values

Returns:
Type Details
Cassandra\Type

The collection type

static Cassandra\Type

set

( Cassandra\Type $type )

Initialize a set type

<?php
use Type;

$set = Type::set(Type::varchar())
           ->create("a", "b", "c", "d", "e", "f", "g", "h", "i", "j");

var_dump($set);
Static
This method is static
Parameters:
Name Type Details
$type Cassandra\Type

The types of values

Returns:
Type Details
Cassandra\Type

The set type

static Cassandra\Type

map

( Cassandra\Type $keyType, Cassandra\Type $valueType )

Initialize a map type

<?php
use Type;

$map = Type::map(Type::int(), Type::varchar())
           ->create(1, "a", 2, "b", 3, "c", 4, "d", 5, "e", 6, "f")

var_dump($map);
Static
This method is static
Parameters:
Name Type Details
$keyType Cassandra\Type

The type of keys

$valueType Cassandra\Type

The type of values

Returns:
Type Details
Cassandra\Type

The map type

static Cassandra\Type

tuple

( Cassandra\Type $types )

Initialize a tuple type

<?php
use Type;

$tuple = Type::tuple(Type::varchar(), Type::int())
           ->create("a", 123);

var_dump($tuple);
Static
This method is static
Parameters:
Name Type Details
$types Cassandra\Type

A variadic list of types

Returns:
Type Details
Cassandra\Type

The tuple type

static Cassandra\Type

userType

( Cassandra\Type $types )

Initialize a user type

<?php
use Type;

$userType = Type::userType("a", Type::varchar(), "b", Type::int())
                ->create("a", "abc", "b", 123);

var_dump($userType);
Static
This method is static
Parameters:
Name Type Details
$types Cassandra\Type

A variadic list of name/type pairs

Returns:
Type Details
Cassandra\Type

The user type