ColumnTypeConst.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Aliyun\OTS;
  3. /* 该类被使用于描述主键和属性列的数据类型。 */
  4. class ColumnTypeConst {
  5. const CONST_STRING = 'STRING';
  6. const CONST_INTEGER = 'INTEGER';
  7. const CONST_BOOLEAN = 'BOOLEAN';
  8. const CONST_DOUBLE = 'DOUBLE';
  9. const CONST_BINARY = 'BINARY';
  10. const CONST_INF_MIN = 'INF_MIN';
  11. const CONST_INF_MAX = 'INF_MAX';
  12. static public function values() {
  13. return array (
  14. ColumnTypeConst::CONST_BINARY,
  15. ColumnTypeConst::CONST_BOOLEAN,
  16. ColumnTypeConst::CONST_DOUBLE,
  17. ColumnTypeConst::CONST_INTEGER,
  18. ColumnTypeConst::CONST_STRING,
  19. ColumnTypeConst::CONST_INF_MAX,
  20. ColumnTypeConst::CONST_INF_MIN
  21. );
  22. }
  23. static public function members() {
  24. return array (
  25. 'ColumnTypeConst::CONST_BINARY',
  26. 'ColumnTypeConst::CONST_BOOLEAN',
  27. 'ColumnTypeConst::CONST_DOUBLE',
  28. 'ColumnTypeConst::CONST_INTEGER',
  29. 'ColumnTypeConst::CONST_STRING',
  30. 'ColumnTypeConst::CONST_INF_MAX',
  31. 'ColumnTypeConst::CONST_INF_MIN'
  32. );
  33. }
  34. }