Type
abstract class Type (View source)
Cluster object is used to create Sessions.
Methods
Returns the name of this type as string.
Returns string representation of this type.
Details
        
        final        static            Type
    ascii()
        
    
    Get representation of ascii type
        
        final        static            Type
    bigint()
        
    
    Get representation of bigint type
        
        final        static            Type
    smallint()
        
    
    Get representation of smallint type
        
        final        static            Type
    tinyint()
        
    
    Get representation of tinyint type
        
        final        static            Type
    blob()
        
    
    Get representation of blob type
        
        final        static            Type
    boolean()
        
    
    Get representation of boolean type
        
        final        static            Type
    counter()
        
    
    Get representation of counter type
        
        final        static            Type
    decimal()
        
    
    Get representation of decimal type
        
        final        static            Type
    double()
        
    
    Get representation of double type
        
        final        static            Type
    duration()
        
    
    Get representation of duration type
        
        final        static            Type
    float()
        
    
    Get representation of float type
        
        final        static            Type
    int()
        
    
    Get representation of int type
        
        final        static            Type
    text()
        
    
    Get representation of text type
        
        final        static            Type
    timestamp()
        
    
    Get representation of timestamp type
        
        final        static            Type
    date()
        
    
    Get representation of date type
        
        final        static            Type
    time()
        
    
    Get representation of time type
        
        final        static            Type
    uuid()
        
    
    Get representation of uuid type
        
        final        static            Type
    varchar()
        
    
    Get representation of varchar type
        
        final        static            Type
    varint()
        
    
    Get representation of varint type
        
        final        static            Type
    timeuuid()
        
    
    Get representation of timeuuid type
        
        final        static            Type
    inet()
        
    
    Get representation of inet type
        
        final        static            Type
    collection(Type $type)
        
    
    Initialize a Collection type
<?php
use Type;                $collection = Type::collection(Type::int()) ->create(1, 2, 3, 4, 5, 6, 7, 8, 9);
var_dump($collection);
        
        
        
        final        static            Type
    set(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);
        
        
        
        final        static            Type
    map(Type $keyType, Type $valueType)
        
    
    Initialize a map type
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);```
        
        final        static            Type
    tuple(Type $types)
        
    
    Initialize a tuple type
use Type;                $tuple = Type::tuple(Type::varchar(), Type::int()) ->create("a", 123);
var_dump($tuple);```
        
        final        static            Type
    userType(Type $types)
        
    
    Initialize a user type
use Type;                $userType = Type::userType("a", Type::varchar(), "b", Type::int()) ->create("a", "abc", "b", 123);
var_dump($userType);```
        
            abstract                string
    name()
        
    
    Returns the name of this type as string.
        
            abstract                string
    __toString()
        
    
    Returns string representation of this type.