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

    https://github.com/apache/incubator-gearpump/pull/131#discussion_r95948972
  
    --- Diff: 
streaming/src/main/scala/org/apache/gearpump/streaming/dsl/api/functions/FilterFunction.scala
 ---
    @@ -15,17 +15,28 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    +package org.apache.gearpump.streaming.dsl.api.functions
     
    -package org.apache.gearpump.streaming.javaapi.dsl.functions;
    +import 
org.apache.gearpump.streaming.dsl.scalaapi.functions.SerializableFunction
     
    -import java.io.Serializable;
    +object FilterFunction {
    +
    +  def apply[T](fn: T => Boolean): FilterFunction[T] = {
    +    new FilterFunction[T] {
    +      override def apply(t: T): Boolean = {
    +        fn(t)
    +      }
    +    }
    +  }
    +}
     
     /**
    - * Function that map a value of type T to value of type R
    + * Returns true to keep the input and false otherwise.
      *
    - * @param <T> Input value type
    - * @param <R> Output value type
    + * @tparam T Input value type
    --- End diff --
    
    this is auto-generated and causes `sbt unidoc` to fail. I'm fixing it.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to