Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[SPARK-12177][Streaming][Kafka] move trait to abstract class per tdas
  • Loading branch information
koeninger committed Jun 30, 2016
commit 2652170916114965ac72ec75abfc6772b54b43e8
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import org.apache.spark.annotation.Experimental
* @tparam V type of Kafka message value
*/
@Experimental
trait ConsumerStrategy[K, V] {
abstract class ConsumerStrategy[K, V] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a pointer to the ConsumerStrategies class in the docs for this class?

And similarly for LocationStrategies?

/**
* Kafka <a href="http://kafka.apache.org/documentation.htmll#newconsumerconfigs">
* configuration parameters</a> to be used on executors. Requires "bootstrap.servers" to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import org.apache.spark.annotation.Experimental
* Choice of location is only a preference, not an absolute; partitions may be scheduled elsewhere.
*/
@Experimental
sealed trait LocationStrategy
sealed abstract class LocationStrategy

private case object PreferBrokers extends LocationStrategy

Expand Down