You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by kosii <gi...@git.apache.org> on 2016/07/01 16:01:05 UTC

[GitHub] storm pull request #1470: STORM-1886 Extend KeyValueState iface with delete

Github user kosii commented on a diff in the pull request:

    https://github.com/apache/storm/pull/1470#discussion_r69321335
  
    --- Diff: external/storm-redis/src/main/java/org/apache/storm/redis/state/RedisKeyValueState.java ---
    @@ -60,22 +64,23 @@ public RedisKeyValueState(String namespace) {
         }
     
         public RedisKeyValueState(String namespace, JedisPoolConfig poolConfig) {
    -        this(namespace, poolConfig, new DefaultStateSerializer<K>(), new DefaultStateSerializer<V>());
    +        this(namespace, poolConfig, new DefaultStateSerializer<K>(), new DefaultStateSerializer<Optional<V>>());
         }
     
    -    public RedisKeyValueState(String namespace, JedisPoolConfig poolConfig, Serializer<K> keySerializer, Serializer<V> valueSerializer) {
    +    public RedisKeyValueState(String namespace, JedisPoolConfig poolConfig, Serializer<K> keySerializer, Serializer<Optional<V>> valueSerializer) {
    --- End diff --
    
    by having a `private final Serializer<Optional<V>> internalValueSerializer`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---