You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beam.apache.org by Steve973 <st...@gmail.com> on 2019/08/25 01:43:31 UTC

Using RedisIO for hashes and selecting a database

I am new to Beam and I am familiarizing myself with various aspects of this
cool framework.  I need to be able to get key/value pairs from a Redis
hash, and not just the key/value store in the default database (database
0).  I have only seen the ability to get key/value pairs that have been set
in Redis, but the source code does not make it seem like I can look up
keys/values in a hash, and I have not seen a way to select a database
number.  Have I missed something, or is this feature not (yet)
implemented?  If I want to use this, am I going to have to extend the
RedisIO class?  Thanks in advance!

Re: Using RedisIO for hashes and selecting a database

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

RedisIO currently doesn't support option to select a database.

Can you please create a Jira I will do the improvement ?

Thanks,
Regards
JB

On 25/08/2019 03:43, Steve973 wrote:
> I am new to Beam and I am familiarizing myself with various aspects of
> this cool framework.  I need to be able to get key/value pairs from a
> Redis hash, and not just the key/value store in the default database
> (database 0).  I have only seen the ability to get key/value pairs that
> have been set in Redis, but the source code does not make it seem like I
> can look up keys/values in a hash, and I have not seen a way to select a
> database number.  Have I missed something, or is this feature not (yet)
> implemented?  If I want to use this, am I going to have to extend the
> RedisIO class?  Thanks in advance!

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com