You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gearpump.apache.org by darionyaphet <gi...@git.apache.org> on 2016/10/10 11:02:04 UTC

[GitHub] incubator-gearpump pull request #93: GEARPUMP-215 Gearpump Redis Integration...

GitHub user darionyaphet opened a pull request:

    https://github.com/apache/incubator-gearpump/pull/93

    GEARPUMP-215 Gearpump Redis Integration - RedisStorage

    [Gearpump Redis Integration - RedisStorage](https://issues.apache.org/jira/browse/GEARPUMP-215)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/darionyaphet/incubator-gearpump GEARPUMP-215

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-gearpump/pull/93.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 #93
    
----
commit eee43204480e6b4d539ae0053057ad60a9051b9e
Author: darionyaphet <da...@gmail.com>
Date:   2016-09-25T11:05:42Z

    GEARPUMP-215 Gearpump Redis Integration - RedisStorage

----


---
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.
---

[GitHub] incubator-gearpump pull request #93: GEARPUMP-215 Gearpump Redis Integration...

Posted by manuzhang <gi...@git.apache.org>.
Github user manuzhang commented on a diff in the pull request:

    https://github.com/apache/incubator-gearpump/pull/93#discussion_r82588571
  
    --- Diff: experiments/redis/src/main/scala/org/apache/gearpump/redis/RedisStorage.scala ---
    @@ -0,0 +1,119 @@
    +/*
    + * 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.gearpump.redis
    +
    +import org.apache.gearpump.Message
    +import org.apache.gearpump.redis.RedisMessage.Geo.GEOADD
    +import org.apache.gearpump.redis.RedisMessage.Hashes._
    +import org.apache.gearpump.redis.RedisMessage.HyperLogLog._
    +import org.apache.gearpump.redis.RedisMessage.Keys._
    +import org.apache.gearpump.redis.RedisMessage.Lists._
    +import org.apache.gearpump.redis.RedisMessage.Sets._
    +import org.apache.gearpump.redis.RedisMessage.String._
    +import org.apache.gearpump.streaming.sink.DataSink
    +import org.apache.gearpump.streaming.task.TaskContext
    +import org.apache.gearpump.util.LogUtil
    +import redis.clients.jedis.Jedis
    +import redis.clients.jedis.Protocol.{DEFAULT_DATABASE, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_TIMEOUT}
    +
    +/**
    +  * Save message in Redis Instance
    --- End diff --
    
    please fix the comment style. If you are using Intellij, please go to `Editor => Code Style => Scala`, switch to `Wrapping and Braces` tab, click on `Keep when reformatting` and check `Comment at first column`


---
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.
---

[GitHub] incubator-gearpump issue #93: GEARPUMP-215 Gearpump Redis Integration - Redi...

Posted by codecov-io <gi...@git.apache.org>.
Github user codecov-io commented on the issue:

    https://github.com/apache/incubator-gearpump/pull/93
  
    ## [Current coverage](https://codecov.io/gh/apache/incubator-gearpump/pull/93?src=pr) is 70.94% (diff: 100%)
    > Merging [#93](https://codecov.io/gh/apache/incubator-gearpump/pull/93?src=pr) into [master](https://codecov.io/gh/apache/incubator-gearpump/branch/master?src=pr) will decrease coverage by **0.61%**
    
    
    ```diff
    @@             master        #93   diff @@
    ==========================================
      Files           186        186          
      Lines          5985       5985          
      Methods        5464       5464          
      Messages          0          0          
      Branches        521        521          
    ==========================================
    - Hits           4283       4246    -37   
    - Misses         1702       1739    +37   
      Partials          0          0          
    ```
    
    ![Sunburst](https://codecov.io/gh/apache/incubator-gearpump/pull/93/graphs/sunburst.svg?src=pr&size=150)
    
    > Powered by [Codecov](https://codecov.io?src=pr). Last update [9b87945...eee4320](https://codecov.io/gh/apache/incubator-gearpump/compare/9b879456d6ff03e961aca97857903082be189084...eee43204480e6b4d539ae0053057ad60a9051b9e?src=pr)


---
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.
---

[GitHub] incubator-gearpump issue #93: GEARPUMP-215 Gearpump Redis Integration - Redi...

Posted by manuzhang <gi...@git.apache.org>.
Github user manuzhang commented on the issue:

    https://github.com/apache/incubator-gearpump/pull/93
  
    @darionyaphet +1, thanks for your contribution. Please keep the good work.


---
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.
---

[GitHub] incubator-gearpump pull request #93: GEARPUMP-215 Gearpump Redis Integration...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-gearpump/pull/93


---
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.
---

[GitHub] incubator-gearpump pull request #93: GEARPUMP-215 Gearpump Redis Integration...

Posted by manuzhang <gi...@git.apache.org>.
Github user manuzhang commented on a diff in the pull request:

    https://github.com/apache/incubator-gearpump/pull/93#discussion_r82587759
  
    --- Diff: experiments/redis/src/main/scala/org/apache/gearpump/redis/RedisStorage.scala ---
    @@ -0,0 +1,119 @@
    +/*
    + * 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.gearpump.redis
    +
    +import org.apache.gearpump.Message
    +import org.apache.gearpump.redis.RedisMessage.Geo.GEOADD
    +import org.apache.gearpump.redis.RedisMessage.Hashes._
    +import org.apache.gearpump.redis.RedisMessage.HyperLogLog._
    +import org.apache.gearpump.redis.RedisMessage.Keys._
    +import org.apache.gearpump.redis.RedisMessage.Lists._
    +import org.apache.gearpump.redis.RedisMessage.Sets._
    +import org.apache.gearpump.redis.RedisMessage.String._
    +import org.apache.gearpump.streaming.sink.DataSink
    +import org.apache.gearpump.streaming.task.TaskContext
    +import org.apache.gearpump.util.LogUtil
    +import redis.clients.jedis.Jedis
    +import redis.clients.jedis.Protocol.{DEFAULT_DATABASE, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_TIMEOUT}
    +
    +/**
    +  * Save message in Redis Instance
    +  *
    +  * @param host
    +  * @param port
    +  * @param timeout
    +  * @param database
    +  * @param password
    +  */
    +class RedisStorage(
    --- End diff --
    
    Better name it RedisSink since it extends `DataSink` interface


---
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.
---

[GitHub] incubator-gearpump issue #93: GEARPUMP-215 Gearpump Redis Integration - Redi...

Posted by manuzhang <gi...@git.apache.org>.
Github user manuzhang commented on the issue:

    https://github.com/apache/incubator-gearpump/pull/93
  
    looks good overall despite minor naming and style things


---
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.
---