Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,079 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ language: scala | |
scala: | ||
- 2.12.8 | ||
sudo: required | ||
dist: trusty | ||
dist: xenial | ||
jdk: openjdk11 | ||
|
||
before_cache: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
codefeedr-core/src/main/scala/org/codefeedr/buffer/FakeStage.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.codefeedr.buffer | ||
|
||
import org.codefeedr.stages.InputStage | ||
|
||
import scala.reflect.ClassTag | ||
import scala.reflect.runtime.universe._ | ||
|
||
/** Fake stage to link up already running stages. */ | ||
abstract class FakeStage[T <: Serializable with AnyRef: ClassTag: TypeTag]( | ||
stageId: String) | ||
extends InputStage[T](Some(stageId)) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
codefeedr-core/src/main/scala/org/codefeedr/buffer/KafkaTopic.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.codefeedr.buffer | ||
|
||
import org.apache.flink.streaming.api.scala.DataStream | ||
import org.codefeedr.pipeline.Context | ||
|
||
import scala.reflect.ClassTag | ||
import scala.reflect.runtime.universe._ | ||
|
||
/** KafkaTopic stage which only embodies the topic name, to let a linked stage read from this topic. */ | ||
class KafkaTopic[T <: Serializable with AnyRef: ClassTag: TypeTag]( | ||
topic: String) | ||
extends FakeStage[T](topic) { | ||
|
||
/** This will never be run. */ | ||
override def main(context: Context): DataStream[T] = ??? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.