[ 
https://issues.apache.org/jira/browse/STORM-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567527#comment-14567527
 ] 

ASF GitHub Bot commented on STORM-753:
--------------------------------------

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

    https://github.com/apache/storm/pull/504#discussion_r31443064
  
    --- Diff: 
external/storm-redis/src/main/java/org/apache/storm/redis/trident/state/AbstractRedisMapState.java
 ---
    @@ -0,0 +1,87 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.storm.redis.trident.state;
    +
    +import com.google.common.collect.ImmutableMap;
    +import com.google.common.collect.Maps;
    +import storm.trident.state.*;
    +import storm.trident.state.map.IBackingMap;
    +
    +import java.util.*;
    --- End diff --
    
    I don't really like wild care imports.  They can have unintended 
consequences when moving to a new version of a library. 


> [storm-redis] Let Redis*StateUpdater to have additional mapper - converting 
> Redis key/value to Storm Values
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: STORM-753
>                 URL: https://issues.apache.org/jira/browse/STORM-753
>             Project: Apache Storm
>          Issue Type: Improvement
>    Affects Versions: 0.10.0, 0.11.0
>            Reporter: Jungtaek Lim
>            Assignee: Jungtaek Lim
>
> https://issues.apache.org/jira/browse/STORM-723?focusedCommentId=14381626&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14381626
> Currently Redis*StateUpdater use key prefix to let users customize key name.
> Since it's less powerful, how about having 2 mappers which one is for 
> converting tuple to key/value, and another one is for converting value from 
> Redis to Storm Values?
> You can refer 
> https://github.com/apache/storm/blob/master/external/storm-hbase/src/main/java/org/apache/storm/hbase/trident/state/HBaseState.java.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to