1: <?php
2: namespace cassandra;
3: 4: 5: 6: 7: 8:
9: include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';
10:
11: include_once $GLOBALS['THRIFT_ROOT'].'/packages/cassandra/cassandra_types.php';
12:
13: interface CassandraIf {
14: public function login($auth_request);
15: public function set_keyspace($keyspace);
16: public function get($key, $column_path, $consistency_level);
17: public function get_slice($key, $column_parent, $predicate, $consistency_level);
18: public function get_count($key, $column_parent, $predicate, $consistency_level);
19: public function multiget_slice($keys, $column_parent, $predicate, $consistency_level);
20: public function multiget_count($keys, $column_parent, $predicate, $consistency_level);
21: public function get_range_slices($column_parent, $predicate, $range, $consistency_level);
22: public function get_paged_slice($column_family, $range, $start_column, $consistency_level);
23: public function get_indexed_slices($column_parent, $index_clause, $column_predicate, $consistency_level);
24: public function insert($key, $column_parent, $column, $consistency_level);
25: public function add($key, $column_parent, $column, $consistency_level);
26: public function remove($key, $column_path, $timestamp, $consistency_level);
27: public function remove_counter($key, $path, $consistency_level);
28: public function batch_mutate($mutation_map, $consistency_level);
29: public function truncate($cfname);
30: public function describe_schema_versions();
31: public function describe_keyspaces();
32: public function describe_cluster_name();
33: public function describe_version();
34: public function describe_ring($keyspace);
35: public function describe_partitioner();
36: public function describe_snitch();
37: public function describe_keyspace($keyspace);
38: public function describe_splits($cfName, $start_token, $end_token, $keys_per_split);
39: public function system_add_column_family($cf_def);
40: public function system_drop_column_family($column_family);
41: public function system_add_keyspace($ks_def);
42: public function system_drop_keyspace($keyspace);
43: public function system_update_keyspace($ks_def);
44: public function system_update_column_family($cf_def);
45: public function execute_cql_query($query, $compression);
46: public function prepare_cql_query($query, $compression);
47: public function execute_prepared_cql_query($itemId, $values);
48: public function set_cql_version($version);
49: }
50:
51: $GLOBALS['THRIFT_AUTOLOAD']['cassandra\cassandraclient'] = 'cassandra/cassandra.Cassandra.client.php';
52:
53:
54: ?>
55: