Class/Object

org.apache.gearpump.streaming.kafka.lib.source

AbstractKafkaSource

Related Docs: object AbstractKafkaSource | package source

Permalink

abstract class AbstractKafkaSource extends TimeReplayableSource

Contains implementation for Kafka source connectors, users should use org.apache.gearpump.streaming.kafka.KafkaSource.

This is a TimeReplayableSource which is able to replay messages given a start time. Each kafka message is tagged with a timestamp by org.apache.gearpump.streaming.transaction.api.MessageDecoder and the (timestamp, offset) mapping is stored to a org.apache.gearpump.streaming.transaction.api.CheckpointStore. On recovery, we could retrieve the previously stored offset from the org.apache.gearpump.streaming.transaction.api.CheckpointStore by timestamp and start to read from there.

kafka message is wrapped into gearpump org.apache.gearpump.Message and further filtered by a org.apache.gearpump.streaming.transaction.api.TimeStampFilter such that obsolete messages are dropped.

Linear Supertypes
TimeReplayableSource, DataSource, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractKafkaSource
  2. TimeReplayableSource
  3. DataSource
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractKafkaSource(topic: String, properties: Properties)

    Permalink
  2. new AbstractKafkaSource(topic: String, props: Properties, kafkaConfigFactory: KafkaConfigFactory, kafkaClientFactory: KafkaClientFactory, fetchThreadFactory: FetchThreadFactory)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addCheckpointStore(tp: TopicAndPartition, store: CheckpointStore): Unit

    Permalink
    Attributes
    protected
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink
    Definition Classes
    AbstractKafkaSource → DataSource
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def open(context: TaskContext, startTime: TimeStamp): Unit

    Permalink
    Definition Classes
    AbstractKafkaSource → DataSource
  18. def read(): Message

    Permalink

    Reads a record from incoming queue, decodes, filters and checkpoints offsets before returns a Message.

    Reads a record from incoming queue, decodes, filters and checkpoints offsets before returns a Message. Message can be null if the incoming queue is empty.

    returns

    a org.apache.gearpump.Message or null

    Definition Classes
    AbstractKafkaSource → DataSource
  19. def setCheckpointStore(checkpointStoreFactory: CheckpointStoreFactory): Unit

    Permalink
    Definition Classes
    AbstractKafkaSource → TimeReplayableSource
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TimeReplayableSource

Inherited from DataSource

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped