当前位置: 首页>>代码示例>>PHP>>正文


PHP Type::varint方法代码示例

本文整理汇总了PHP中Type::varint方法的典型用法代码示例。如果您正苦于以下问题:PHP Type::varint方法的具体用法?PHP Type::varint怎么用?PHP Type::varint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Type的用法示例。


在下文中一共展示了Type::varint方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: scalarCassandraTypes

 /**
  * Scalar Cassandra types to be used by data providers
  */
 public function scalarCassandraTypes()
 {
     return array(array(Type::ascii(), array("a", "b", "c")), array(Type::bigint(), array(new Bigint("1"), new Bigint("2"), new Bigint("3"))), array(Type::blob(), array(new Blob("x"), new Blob("y"), new Blob("z"))), array(Type::boolean(), array(true, false, true, false)), array(Type::double(), array(1.1, 2.2, 3.3, 4.4)), array(Type::float(), array(new Float(1.0), new Float(2.2), new Float(2.2))), array(Type::inet(), array(new Inet("127.0.0.1"), new Inet("127.0.0.2"), new Inet("127.0.0.3"))), array(Type::text(), array("a", "b", "c", "x", "y", "z")), array(Type::timestamp(), array(new Timestamp(123), new Timestamp(456), new Timestamp(789))), array(Type::timeuuid(), array(new Timeuuid(0), new Timeuuid(1), new Timeuuid(2))), array(Type::uuid(), array(new Uuid("03398c99-c635-4fad-b30a-3b2c49f785c2"), new Uuid("03398c99-c635-4fad-b30a-3b2c49f785c3"), new Uuid("03398c99-c635-4fad-b30a-3b2c49f785c4"))), array(Type::varchar(), array("a", "b", "c", "x", "y", "z")), array(Type::varint(), array(new Varint(1), new Varint(2), new Varint(3))));
 }
开发者ID:harley84,项目名称:php-driver,代码行数:7,代码来源:CollectionsIntegrationTest.php

示例2: notEqualTypes

 public function notEqualTypes()
 {
     $setType = Type::set(Type::int());
     return array(array(Type::userType('a', Type::int(), 'b', Type::varchar(), 'c', Type::varint())->create(), Type::userType('a', Type::int(), 'b', Type::varchar(), 'c', Type::bigint())->create()), array(Type::userType('a', Type::int(), 'b', Type::varchar(), 'c', Type::bigint())->create(), Type::userType('x', Type::int(), 'y', Type::varchar(), 'z', Type::bigint())->create()), array(Type::userType('a', Type::int(), 'b', Type::varchar(), 'c', Type::bigint())->create('a', 1, 'b', 'x', 'c', new Bigint(99)), Type::userType('a', Type::int(), 'b', Type::varchar(), 'c', Type::bigint())->create('a', 2, 'b', 'y', 'c', new Bigint(999))), array(Type::userType('a', $setType, 'b', Type::varchar())->create('a', $setType->create(1, 2, 3), 'b', 'x'), Type::userType('a', $setType, 'b', Type::varchar())->create('a', $setType->create(4, 5, 6), 'b', 'x')));
 }
开发者ID:datastax,项目名称:php-driver,代码行数:5,代码来源:UserTypeValueTest.php

示例3: scalarTypes

 public function scalarTypes()
 {
     return array(array(Type::ascii(), "ascii"), array(Type::bigint(), new Bigint("9223372036854775807")), array(Type::blob(), new Blob("blob")), array(Type::boolean(), true), array(Type::counter(), new Bigint(123)), array(Type::decimal(), new Decimal("3.14159265359")), array(Type::double(), 3.14159), array(Type::float(), new Float(3.14159)), array(Type::inet(), new Inet("127.0.0.1")), array(Type::int(), 123), array(Type::text(), "text"), array(Type::timestamp(), new Timestamp(123)), array(Type::timeuuid(), new Timeuuid(0)), array(Type::uuid(), new Uuid("03398c99-c635-4fad-b30a-3b2c49f785c2")), array(Type::varchar(), "varchar"), array(Type::varint(), new Varint("9223372036854775808")));
 }
开发者ID:harley84,项目名称:php-driver,代码行数:4,代码来源:CollectionTest.php

示例4: notEqualTypes

 public function notEqualTypes()
 {
     $setType = Type::set(Type::int());
     return array(array(Type::tuple(Type::int(), Type::varchar(), Type::varint())->create(), Type::tuple(Type::int(), Type::varchar(), Type::bigint())->create()), array(Type::tuple(Type::int(), Type::varchar(), Type::bigint())->create(1, 'a', new Bigint(99)), Type::tuple(Type::int(), Type::varchar(), Type::bigint())->create(2, 'b', new Bigint(99))), array(Type::tuple($setType, Type::varchar())->create($setType->create(1, 2, 3), 'a'), Type::tuple($setType, Type::varchar())->create($setType->create(4, 5, 6), 'a')));
 }
开发者ID:datastax,项目名称:php-driver,代码行数:5,代码来源:TupleTest.php


注:本文中的Type::varint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。