A functional set of stubs to be used for unit testing.
Projects that use pycassa and need to run an automated unit test suite on a system like Jenkins can use these stubs to emulate interactions with Cassandra without spinning up a cluster locally.
Functional ColumnFamily stub object.
Acts very similar to a remote column family, supporting a basic version of the API. When instantiated, it registers itself with the supplied (stub) connection pool.
Get a value from the column family stub.
Get multiple key values from the column family stub.
Currently just gets all values from the column family.
Grabs rows that match a pycassa index clause.
See pycassa.index.create_index_clause() for creating such an index clause.
Insert data to the column family stub.
Remove a key from the column family stub.
Clears all data from the column family stub.
Returns itself.
Connection pool stub.
Notes created column families in self.column_families.
Functional System Manager stub object.
Records when column families, columns, and indexes have been created. To see what has been recorded, look at self.column_families.
Create a column family and record its existence.
Alter a column, recording its name and type.
Create an index, recording its name and type.
Describes the schema based on a hash of the stub system state.