Skip to content

Commit

Permalink
argument order of get is compatible with pycassa
Browse files Browse the repository at this point in the history
  • Loading branch information
hoan committed Apr 9, 2010
1 parent 6c5e3e2 commit b7fba62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpcassa.php
Expand Up @@ -117,14 +117,14 @@ public function __construct($keyspace, $column_family,
$this->parse_columns = true;
}

public function get($key, $super_column=NULL, $column_count=100, $reversed=False, $slice_start="", $slice_finish="") {
public function get($key, $super_column=NULL, $slice_start="", $slice_finish="", $column_reversed=False, $column_count=100) {
$column_parent = new cassandra_ColumnParent();
$column_parent->column_family = $this->column_family;
$column_parent->super_column = $this->unparse_column_name($super_column, false);

$slice_range = new cassandra_SliceRange();
$slice_range->count = $column_count;
$slice_range->reversed = $reversed;
$slice_range->reversed = $column_reversed;
$slice_range->start = $slice_start;
$slice_range->finish = $slice_finish;
$predicate = new cassandra_SlicePredicate();
Expand Down

0 comments on commit b7fba62

Please sign in to comment.