Package

org.apache.gearpump.streaming

dsl

Permalink

package dsl

Visibility
  1. Public
  2. All

Type Members

  1. class CollectionDataSource[T] extends DataSource

    Permalink

    A test message source which generated message sequence repeatedly.

  2. class KVStream[K, V] extends AnyRef

    Permalink
  3. class LoggerSink[T] extends DataSink

    Permalink
  4. class Stream[T] extends AnyRef

    Permalink
  5. class StreamApp extends AnyRef

    Permalink

    Example:

    Example:

    val data = "This is a good start, bingo!! bingo!!"
    app.fromCollection(data.lines.toList).
    // word => (word, count)
    flatMap(line => line.split("[\\s]+")).map((_, 1)).
    // (word, count1), (word, count2) => (word, count1 + count2)
    groupBy(kv => kv._1).reduce(sum(_, _))
    
    val appId = context.submit(app)
    context.close()

Value Members

  1. object Stream

    Permalink
  2. object StreamApp

    Permalink
  3. package javaapi

    Permalink
  4. package op

    Permalink
  5. package partitioner

    Permalink
  6. package plan

    Permalink

Ungrouped