cassandra-thrift-0.8.0: thrift bindings to the cassandra database

Database.Cassandra.Thrift.Cassandra_Iface

Documentation

class Cassandra_Iface a whereSource

Methods

login :: a -> Maybe AuthenticationRequest -> IO ()Source

set_keyspace :: a -> Maybe String -> IO ()Source

get :: a -> Maybe ByteString -> Maybe ColumnPath -> Maybe ConsistencyLevel -> IO ColumnOrSuperColumnSource

get_slice :: a -> Maybe ByteString -> Maybe ColumnParent -> Maybe SlicePredicate -> Maybe ConsistencyLevel -> IO [ColumnOrSuperColumn]Source

get_count :: a -> Maybe ByteString -> Maybe ColumnParent -> Maybe SlicePredicate -> Maybe ConsistencyLevel -> IO Int32Source

multiget_slice :: a -> Maybe [ByteString] -> Maybe ColumnParent -> Maybe SlicePredicate -> Maybe ConsistencyLevel -> IO (Map ByteString [ColumnOrSuperColumn])Source

multiget_count :: a -> Maybe [ByteString] -> Maybe ColumnParent -> Maybe SlicePredicate -> Maybe ConsistencyLevel -> IO (Map ByteString Int32)Source

get_range_slices :: a -> Maybe ColumnParent -> Maybe SlicePredicate -> Maybe KeyRange -> Maybe ConsistencyLevel -> IO [KeySlice]Source

get_indexed_slices :: a -> Maybe ColumnParent -> Maybe IndexClause -> Maybe SlicePredicate -> Maybe ConsistencyLevel -> IO [KeySlice]Source

insert :: a -> Maybe ByteString -> Maybe ColumnParent -> Maybe Column -> Maybe ConsistencyLevel -> IO ()Source

add :: a -> Maybe ByteString -> Maybe ColumnParent -> Maybe CounterColumn -> Maybe ConsistencyLevel -> IO ()Source

remove :: a -> Maybe ByteString -> Maybe ColumnPath -> Maybe Int64 -> Maybe ConsistencyLevel -> IO ()Source

remove_counter :: a -> Maybe ByteString -> Maybe ColumnPath -> Maybe ConsistencyLevel -> IO ()Source

batch_mutate :: a -> Maybe (Map ByteString (Map String [Mutation])) -> Maybe ConsistencyLevel -> IO ()Source

truncate :: a -> Maybe String -> IO ()Source

describe_schema_versions :: a -> IO (Map String [String])Source

describe_keyspaces :: a -> IO [KsDef]Source

describe_cluster_name :: a -> IO StringSource

describe_version :: a -> IO StringSource

describe_ring :: a -> Maybe String -> IO [TokenRange]Source

describe_partitioner :: a -> IO StringSource

describe_snitch :: a -> IO StringSource

describe_keyspace :: a -> Maybe String -> IO KsDefSource

describe_splits :: a -> Maybe String -> Maybe String -> Maybe String -> Maybe Int32 -> IO [String]Source

system_add_column_family :: a -> Maybe CfDef -> IO StringSource

system_drop_column_family :: a -> Maybe String -> IO StringSource

system_add_keyspace :: a -> Maybe KsDef -> IO StringSource

system_drop_keyspace :: a -> Maybe String -> IO StringSource

system_update_keyspace :: a -> Maybe KsDef -> IO StringSource

system_update_column_family :: a -> Maybe CfDef -> IO StringSource

execute_cql_query :: a -> Maybe ByteString -> Maybe Compression -> IO CqlResultSource