Table.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?php
  2. namespace Swoole;
  3. class Table implements \Iterator, \ArrayAccess, \Countable
  4. {
  5. public const TYPE_INT = 1;
  6. public const TYPE_STRING = 3;
  7. public const TYPE_FLOAT = 2;
  8. public $size;
  9. public $memorySize;
  10. public function __construct($table_size, $conflict_proportion = null)
  11. {
  12. }
  13. /**
  14. * @return mixed
  15. */
  16. public function column($name, $type, $size = null)
  17. {
  18. }
  19. /**
  20. * @return mixed
  21. */
  22. public function create()
  23. {
  24. }
  25. /**
  26. * @return mixed
  27. */
  28. public function destroy()
  29. {
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function set($key, array $value)
  35. {
  36. }
  37. /**
  38. * @return mixed
  39. */
  40. public function get($key, $field = null)
  41. {
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function count()
  47. {
  48. }
  49. /**
  50. * @return mixed
  51. */
  52. public function del($key)
  53. {
  54. }
  55. /**
  56. * @return mixed
  57. */
  58. public function delete($key)
  59. {
  60. }
  61. /**
  62. * @return mixed
  63. */
  64. public function exists($key)
  65. {
  66. }
  67. /**
  68. * @return mixed
  69. */
  70. public function exist($key)
  71. {
  72. }
  73. /**
  74. * @return mixed
  75. */
  76. public function incr($key, $column, $incrby = null)
  77. {
  78. }
  79. /**
  80. * @return mixed
  81. */
  82. public function decr($key, $column, $decrby = null)
  83. {
  84. }
  85. /**
  86. * @return mixed
  87. */
  88. public function getSize()
  89. {
  90. }
  91. /**
  92. * @return mixed
  93. */
  94. public function getMemorySize()
  95. {
  96. }
  97. /**
  98. * @return mixed
  99. */
  100. public function offsetExists($offset)
  101. {
  102. }
  103. /**
  104. * @return mixed
  105. */
  106. public function offsetGet($offset)
  107. {
  108. }
  109. /**
  110. * @return mixed
  111. */
  112. public function offsetSet($offset, $value)
  113. {
  114. }
  115. /**
  116. * @return mixed
  117. */
  118. public function offsetUnset($offset)
  119. {
  120. }
  121. /**
  122. * @return mixed
  123. */
  124. public function rewind()
  125. {
  126. }
  127. /**
  128. * @return mixed
  129. */
  130. public function next()
  131. {
  132. }
  133. /**
  134. * @return mixed
  135. */
  136. public function current()
  137. {
  138. }
  139. /**
  140. * @return mixed
  141. */
  142. public function key()
  143. {
  144. }
  145. /**
  146. * @return mixed
  147. */
  148. public function valid()
  149. {
  150. }
  151. }