K
- input topic key typeM
- input topic message typepublic abstract class AbstractSparkLayer<K,M> extends Object implements Closeable
BatchLayer
and
SpeedLayer
Modifier | Constructor and Description |
---|---|
protected |
AbstractSparkLayer(com.typesafe.config.Config config) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.spark.streaming.api.java.JavaInputDStream<org.apache.kafka.clients.consumer.ConsumerRecord<K,M>> |
buildInputDStream(org.apache.spark.streaming.api.java.JavaStreamingContext streamingContext) |
protected org.apache.spark.streaming.api.java.JavaStreamingContext |
buildStreamingContext() |
protected com.typesafe.config.Config |
getConfig() |
protected abstract String |
getConfigGroup() |
protected String |
getGroupID() |
protected String |
getID() |
protected String |
getInputTopicLockMaster() |
protected Class<K> |
getKeyClass() |
protected abstract String |
getLayerName() |
protected Class<M> |
getMessageClass() |
protected AbstractSparkLayer(com.typesafe.config.Config config)
protected abstract String getConfigGroup()
protected abstract String getLayerName()
protected final com.typesafe.config.Config getConfig()
protected final String getID()
protected final String getGroupID()
protected final String getInputTopicLockMaster()
protected final org.apache.spark.streaming.api.java.JavaStreamingContext buildStreamingContext()
Copyright © 2014–2018. All rights reserved.