timestamp() final static public method

Get representation of cassandra timestamp type
final static public timestamp ( ) : Cassandra\Type
return Cassandra\Type timestamp type
Beispiel #1
0
 public function scalarTypes()
 {
     return array(array(function () {
         return Type::ascii();
     }), array(function () {
         return Type::bigint();
     }), array(function () {
         return Type::blob();
     }), array(function () {
         return Type::boolean();
     }), array(function () {
         return Type::counter();
     }), array(function () {
         return Type::decimal();
     }), array(function () {
         return Type::double();
     }), array(function () {
         return Type::float();
     }), array(function () {
         return Type::inet();
     }), array(function () {
         return Type::int();
     }), array(function () {
         return Type::text();
     }), array(function () {
         return Type::timestamp();
     }), array(function () {
         return Type::timeuuid();
     }), array(function () {
         return Type::uuid();
     }), array(function () {
         return Type::varchar();
     }), array(function () {
         return Type::varint();
     }));
 }
Beispiel #2
0
 public function scalarTypes()
 {
     return array(array(Type::ascii(), "ascii", "ascii"), array(Type::bigint(), new Bigint("9223372036854775807"), new Bigint("9223372036854775807")), array(Type::blob(), new Blob("blob"), new Blob("blob")), array(Type::boolean(), true, true), array(Type::counter(), new Bigint(123), new Bigint(123)), array(Type::decimal(), new Decimal("3.14159265359"), new Decimal("3.14159265359")), array(Type::double(), 3.14159, 3.14159), array(Type::float(), new Float(3.14159), new Float(3.14159)), array(Type::inet(), new Inet("127.0.0.1"), new Inet("127.0.0.1")), array(Type::int(), 123, 123), array(Type::text(), "text", "text"), array(Type::timestamp(), new Timestamp(123), new Timestamp(123)), array(Type::timeuuid(), new Timeuuid(0), new Timeuuid(0)), array(Type::uuid(), new Uuid("03398c99-c635-4fad-b30a-3b2c49f785c2"), new Uuid("03398c99-c635-4fad-b30a-3b2c49f785c2")), array(Type::varchar(), "varchar", "varchar"), array(Type::varint(), new Varint("9223372036854775808"), new Varint("9223372036854775808")));
 }