Copyright | (c) 2011 MailRank Inc. |
---|---|
License | Apache |
Maintainer | Mark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Smart constructors for Riak types. These functions correctly URL-escape bucket, key, and link names. You should thus use them in preference to the raw data constructors.
Synopsis
- data PingRequest
- ping :: PingRequest
- data GetClientIDRequest
- getClientID :: GetClientIDRequest
- data GetServerInfoRequest
- getServerInfo :: GetServerInfoRequest
- data GetRequest
- get :: Maybe BucketType -> Bucket -> Key -> R -> GetRequest
- getByIndex :: Bucket -> IndexQuery -> IndexRequest
- data IndexRequest
- data PutRequest
- put :: Maybe BucketType -> Bucket -> Key -> Maybe VClock -> Content -> W -> DW -> Bool -> PutRequest
- data DeleteRequest
- delete :: Maybe BucketType -> Bucket -> Key -> RW -> DeleteRequest
- data Link
- link :: Bucket -> Key -> Tag -> Link
- data ListBucketsRequest
- listBuckets :: Maybe BucketType -> ListBucketsRequest
- data ListKeysRequest
- listKeys :: Maybe BucketType -> Bucket -> ListKeysRequest
- data GetBucketRequest
- getBucket :: Maybe BucketType -> Bucket -> GetBucketRequest
- data SetBucketRequest
- setBucket :: Maybe BucketType -> Bucket -> BucketProps -> SetBucketRequest
- getBucketType :: BucketType -> GetBucketTypeRequest
- data MapReduceRequest
- mapReduce :: Job -> MapReduceRequest
- search :: SearchQuery -> Index -> SearchQueryRequest
- getIndex :: Maybe Index -> YzIndexGetRequest
- putIndex :: IndexInfo -> Maybe Timeout -> YzIndexPutRequest
- deleteIndex :: Index -> YzIndexDeleteRequest
Connection management
data PingRequest #
Instances
ping :: PingRequest Source #
Create a ping request.
data GetClientIDRequest #
Instances
getClientID :: GetClientIDRequest Source #
Create a client-ID request.
data GetServerInfoRequest #
Instances
getServerInfo :: GetServerInfoRequest Source #
Create a server-info request.
Data management
data GetRequest #
Instances
get :: Maybe BucketType -> Bucket -> Key -> R -> GetRequest Source #
Create a get request. The bucket and key names are URL-escaped.
getByIndex :: Bucket -> IndexQuery -> IndexRequest Source #
Create a secondary index request. Bucket, key and index names and values are URL-escaped.
data IndexRequest #
Instances
data PutRequest #
Instances
put :: Maybe BucketType -> Bucket -> Key -> Maybe VClock -> Content -> W -> DW -> Bool -> PutRequest Source #
data DeleteRequest #
Instances
delete :: Maybe BucketType -> Bucket -> Key -> RW -> DeleteRequest Source #
Create a delete request. The bucket and key names are URL-escaped.
Metadata
Instances
Eq Link | |
Data Link | |
Defined in Network.Riak.Protocol.Link gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Link -> c Link # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Link # dataTypeOf :: Link -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Link) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Link) # gmapT :: (forall b. Data b => b -> b) -> Link -> Link # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Link -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Link -> r # gmapQ :: (forall d. Data d => d -> u) -> Link -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Link -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Link -> m Link # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Link -> m Link # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Link -> m Link # | |
Ord Link | |
Show Link | |
Generic Link | |
GPB Link | |
Defined in Network.Riak.Protocol.Link | |
Wire Link | |
TextMsg Link | |
TextType Link | |
ReflectDescriptor Link | |
Defined in Network.Riak.Protocol.Link | |
Mergeable Link | |
Defined in Network.Riak.Protocol.Link mergeAppend :: Link -> Link -> Link # mergeConcat :: Foldable t => t Link -> Link # | |
Default Link | |
Defined in Network.Riak.Protocol.Link defaultValue :: Link # | |
MessageAPI msg' (msg' -> Link) Link | |
type Rep Link | |
Defined in Network.Riak.Protocol.Link type Rep Link = D1 (MetaData "Link" "Network.Riak.Protocol.Link" "riak-protobuf-0.24.0.0-7JwUXguEL16DFQwjRdUSeY" False) (C1 (MetaCons "Link" PrefixI True) (S1 (MetaSel (Just "bucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ByteString)) :*: (S1 (MetaSel (Just "key") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 (MetaSel (Just "tag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ByteString))))) |
link :: Bucket -> Key -> Tag -> Link Source #
Create a link. The bucket and key names are URL-escaped.
data ListBucketsRequest #
Instances
listBuckets :: Maybe BucketType -> ListBucketsRequest Source #
Create a list-buckets request.
data ListKeysRequest #
Instances
listKeys :: Maybe BucketType -> Bucket -> ListKeysRequest Source #
Create a list-keys request. The bucket type and name are URL-escaped.
data GetBucketRequest #
Instances
getBucket :: Maybe BucketType -> Bucket -> GetBucketRequest Source #
Create a get-bucket request. The bucket type and name are URL-escaped.
data SetBucketRequest #
Instances
setBucket :: Maybe BucketType -> Bucket -> BucketProps -> SetBucketRequest Source #
Create a set-bucket request. The bucket type and name are URL-escaped.
getBucketType :: BucketType -> GetBucketTypeRequest Source #
Create a get-bucket-type request. The bucket type is URL-escaped.
Map/reduce
data MapReduceRequest #
Instances
mapReduce :: Job -> MapReduceRequest Source #
Create a map-reduce request.
Search
search :: SearchQuery -> Index -> SearchQueryRequest Source #
Create a search request