Skip to content

Commit

Permalink
[SPARK-24094][SS][MINOR] Change description strings of v2 streaming s…
Browse files Browse the repository at this point in the history
…ources to reflect the change

## What changes were proposed in this pull request?

This makes it easy to understand at runtime which version is running. Great for debugging production issues.

## How was this patch tested?
Not necessary.

Author: Tathagata Das <[email protected]>

Closes apache#21160 from tdas/SPARK-24094.
  • Loading branch information
tdas committed Apr 26, 2018
1 parent ffaf0f9 commit d1eb8d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private[kafka010] class KafkaMicroBatchReader(
kafkaOffsetReader.close()
}

override def toString(): String = s"Kafka[$kafkaOffsetReader]"
override def toString(): String = s"KafkaV2[$kafkaOffsetReader]"

/**
* Read initial partition offsets from the checkpoint, or decide the offsets and write them to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class RateStreamMicroBatchReader(options: DataSourceOptions, checkpointLocation:

override def stop(): Unit = {}

override def toString: String = s"MicroBatchRateSource[rowsPerSecond=$rowsPerSecond, " +
override def toString: String = s"RateStreamV2[rowsPerSecond=$rowsPerSecond, " +
s"rampUpTimeSeconds=$rampUpTimeSeconds, " +
s"numPartitions=${options.get(NUM_PARTITIONS).orElse("default")}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class TextSocketMicroBatchReader(options: DataSourceOptions) extends MicroBatchR
}
}

override def toString: String = s"TextSocket[host: $host, port: $port]"
override def toString: String = s"TextSocketV2[host: $host, port: $port]"
}

class TextSocketSourceProvider extends DataSourceV2
Expand Down

0 comments on commit d1eb8d3

Please sign in to comment.