PHP Interface Cassandra\Type

Show file Open project: datastax/php-driver Interface Usage Examples

Public Methods

Method Description
__toString ( ) : string Returns string representation of this type.
ascii ( ) : Cassandra\Type Get representation of cassandra ascii type
bigint ( ) : Cassandra\Type Get representation of cassandra bigint type
blob ( ) : Cassandra\Type Get representation of cassandra blob type
boolean ( ) : Cassandra\Type Get representation of cassandra boolean type
collection ( cassandra\Type $type ) : cassandra\Type Initialize a Collection type
counter ( ) : Cassandra\Type Get representation of cassandra counter type
create ( $value = null ) : mixed Instantiate a value of this type from provided value(s).
decimal ( ) : Cassandra\Type Get representation of cassandra decimal type
double ( ) : Cassandra\Type Get representation of cassandra double type
float ( ) : Cassandra\Type Get representation of cassandra float type
inet ( ) : Cassandra\Type Get representation of cassandra inet type
int ( ) : Cassandra\Type Get representation of cassandra int type
map ( cassandra\Type $key_type, cassandra\Type $value_type ) : cassandra\Type Initialize a map type
name ( ) : string Returns the name of this type as string.
set ( cassandra\Type $type ) Initialize a set type
text ( ) : Cassandra\Type Get representation of cassandra text type
timestamp ( ) : Cassandra\Type Get representation of cassandra timestamp type
timeuuid ( ) : Cassandra\Type Get representation of cassandra timeuuid type
uuid ( ) : Cassandra\Type Get representation of cassandra uuid type
varchar ( ) : Cassandra\Type Get representation of cassandra varchar type
varint ( ) : Cassandra\Type Get representation of cassandra varint type

Method Details

__toString() public method

Returns string representation of this type.
public __toString ( ) : string
return string String representation of this type

ascii() final static public method

Get representation of cassandra ascii type
final static public ascii ( ) : Cassandra\Type
return Cassandra\Type ascii type

bigint() final static public method

Get representation of cassandra bigint type
final static public bigint ( ) : Cassandra\Type
return Cassandra\Type bigint type

blob() final static public method

Get representation of cassandra blob type
final static public blob ( ) : Cassandra\Type
return Cassandra\Type blob type

boolean() final static public method

Get representation of cassandra boolean type
final static public boolean ( ) : Cassandra\Type
return Cassandra\Type boolean type

collection() final static public method

Initialize a Collection type
final static public collection ( cassandra\Type $type ) : cassandra\Type
$type cassandra\Type The type of values
return cassandra\Type The collection type

counter() final static public method

Get representation of cassandra counter type
final static public counter ( ) : Cassandra\Type
return Cassandra\Type counter type

create() public method

Instantiate a value of this type from provided value(s).
public create ( $value = null ) : mixed
return mixed a value of this type

decimal() final static public method

Get representation of cassandra decimal type
final static public decimal ( ) : Cassandra\Type
return Cassandra\Type decimal type

double() final static public method

Get representation of cassandra double type
final static public double ( ) : Cassandra\Type
return Cassandra\Type double type

float() final static public method

Get representation of cassandra float type
final static public float ( ) : Cassandra\Type
return Cassandra\Type float type

inet() final static public method

Get representation of cassandra inet type
final static public inet ( ) : Cassandra\Type
return Cassandra\Type inet type

int() final static public method

Get representation of cassandra int type
final static public int ( ) : Cassandra\Type
return Cassandra\Type int type

map() final static public method

Initialize a map type
final static public map ( cassandra\Type $key_type, cassandra\Type $value_type ) : cassandra\Type
$key_type cassandra\Type The type of keys
$value_type cassandra\Type The type of values
return cassandra\Type The map type

name() public method

Returns the name of this type as string.
public name ( ) : string
return string Name of this type

set() final static public method

Initialize a set type
final static public set ( cassandra\Type $type )
$type cassandra\Type [description]

text() final static public method

Get representation of cassandra text type
final static public text ( ) : Cassandra\Type
return Cassandra\Type text type

timestamp() final static public method

Get representation of cassandra timestamp type
final static public timestamp ( ) : Cassandra\Type
return Cassandra\Type timestamp type

timeuuid() final static public method

Get representation of cassandra timeuuid type
final static public timeuuid ( ) : Cassandra\Type
return Cassandra\Type timeuuid type

uuid() final static public method

Get representation of cassandra uuid type
final static public uuid ( ) : Cassandra\Type
return Cassandra\Type uuid type

varchar() final static public method

Get representation of cassandra varchar type
final static public varchar ( ) : Cassandra\Type
return Cassandra\Type varchar type

varint() final static public method

Get representation of cassandra varint type
final static public varint ( ) : Cassandra\Type
return Cassandra\Type varint type