Overview

Namespaces

  • cassandra
  • None
  • PHP
  • phpcassa
    • Batch
    • Connection
    • Index
    • Iterator
    • Schema
      • DataType
    • Util
    • UUID

Classes

  • AbstractColumnFamily
  • ColumnFamily
  • ColumnSlice
  • SuperColumnFamily
  • SystemManager
  • UUID
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: namespace phpcassa;
 3: 
 4: use cassandra\SliceRange;
 5: 
 6: /**
 7:  * Represents a range of columns to slice from a row, multiple rows,
 8:  * or a super column.
 9:  *
10:  * @package phpcassa
11:  */
12: class ColumnSlice extends SliceRange {
13: 
14:     /** The default limit to the number of columns retrieved in queries. */
15:     const DEFAULT_COLUMN_COUNT = 100; // default max # of columns for get()
16: 
17:     /** The maximum number number of columns that can be fetch at once. */
18:     const MAX_COUNT = 2147483647; # 2^31 - 1
19: 
20:     /**
21:      * Defines a range of columns.
22:      *
23:      * @param mixed $start the column to start with, or '' for the
24:      *        beginning of the row
25:      * @param mixed $finish the column to finish with, or '' for the
26:      *        end of the row
27:      * @param int $count an upper bound on the number of columns to
28:      *        fetch. The default limit is 100 columns.
29:      * @param bool $reversed whether or not to reverse the column
30:      *        slice, going backwards from $start to $finish.
31:      */
32:     function __construct($start="", $finish="",
33:             $count=self::DEFAULT_COLUMN_COUNT, $reversed=False) {
34:         parent::__construct();
35:         $this->start = $start;
36:         $this->finish = $finish;
37:         $this->count = $count;
38:         $this->reversed = $reversed;
39:     }
40: }
41: 
phpcassa API documentation generated by ApiGen 2.8.0