[
https://issues.apache.org/jira/browse/STORM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14341528#comment-14341528
]
ASF GitHub Bot commented on STORM-691:
--------------------------------------
GitHub user HeartSaVioR opened a pull request:
https://github.com/apache/storm/pull/451
STORM-691 Add basic lookup / persist bolts
* Add Basic lookup / persist Bolts
* support data types : string, list, hash, set, sorted set, hyperloglog
* rename util package to common
Type | Read | Write
-------- | ------- | ------
STRING | GET (key) | SET (key, value)
HASH | HGET (key, field) | HSET (key, field, value)
LIST | LPOP (key) | RPUSH (key, value)
SET | SCARD (key) | SADD (key, member)
SORTED SET | ZSCORE (key, member) | ZADD (key, score, member)
HLL (HyperLogLog) | PFCOUNT (key) | PFADD (key, element)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HeartSaVioR/storm STORM-691
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/storm/pull/451.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #451
----
commit f7c0bf8a7c843c6e555ee982a85e3952d1c28b33
Author: Jungtaek Lim <[email protected]>
Date: 2015-02-28T13:29:32Z
STORM-691 Add basic lookup / persist bolts
* Add Basic lookup / persist Bolts
** support data types : string, list, hash, set, sorted set, hyperloglog
* rename util package to common
----
> [storm-redis] Add basic lookup / persist bolts
> ----------------------------------------------
>
> Key: STORM-691
> URL: https://issues.apache.org/jira/browse/STORM-691
> Project: Apache Storm
> Issue Type: Improvement
> Affects Versions: 0.10.0
> Reporter: Jungtaek Lim
> Assignee: Jungtaek Lim
> Priority: Minor
>
> Currently storm-redis provides AbstractRedisBolt for normal (not Trident)
> Bolt.
> Jedis is easy to use so it may be enough, but we can also provide
> implementations of AbstractRedisBolt for simple usage.
> eg. store (key, value) pair, get key's value
> Since Redis has various data types and commands, we can't cover whole things,
> but seems like below things could be considered.
> || Type || Read || Write ||
> | STRING | GET (key) | SET (key, value) |
> | HASH | HGET (key, field) | HSET (key, field, value) |
> | LIST | LPOP (key) | RPUSH (key, value) |
> | SET | SCARD (key) | SADD (key, member) |
> | SORTED SET | ZSCORE (key, member) | ZADD (key, score, member) |
> | HLL (HyperLogLog) | PFCOUNT (key) | PFADD (key, element) |
> Btw, since we will normally get key & value from tuple (as most external
> module did), HASH, SET, SORTED SET needs additional key to process.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)