- data KeySelector
- data KeyRangeType
- data Selector
- = All
- | ColNames [ColumnName]
- | SupNames ColumnName [ColumnName]
- | Range (Maybe ColumnName) (Maybe ColumnName) Order Int32
- mkPredicate :: Selector -> SlicePredicate
- data Order
- type ColumnFamily = String
- type Key = ByteString
- type ColumnName = ByteString
- type Value = ByteString
- data Column
- = SuperColumn ColumnName [Column]
- | Column { }
- type Row = [Column]
- col :: ByteString -> ByteString -> Column
- mkThriftCol :: Column -> IO Column
- castColumn :: ColumnOrSuperColumn -> Either CassandraException Column
- castCol :: Column -> Either CassandraException Column
- castSuperCol :: SuperColumn -> Either CassandraException Column
- data CassandraException
- getTime :: IO Int64
Documentation
data KeySelector Source
A Key
range selector to use with getMulti
.
data KeyRangeType Source
Encodes the Key vs. Token options in the thrift API.
InclusiveRange
ranges are just plain intuitive range queries.
WrapAround
ranges are also inclusive, but they wrap around the ring.
A column selector/filter statement for queries.
Remember that SuperColumns are always fully deserialized, so we don't offer
a way to filter columns within a SuperColumn
.
All | Return everything in |
ColNames [ColumnName] | Return specific columns or super-columns depending on the |
SupNames ColumnName [ColumnName] | When deleting specific columns in a super column |
Range (Maybe ColumnName) (Maybe ColumnName) Order Int32 | Return a range of columns or super-columns |
type ColumnFamily = StringSource
type Key = ByteStringSource
type ColumnName = ByteStringSource
type Value = ByteStringSource
A Column is either a single key-value pair or a SuperColumn with an arbitrary number of key-value pairs
col :: ByteString -> ByteString -> ColumnSource
A short-hand for creating key-value Column
values
mkThriftCol :: Column -> IO ColumnSource