Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/8818#discussion_r40259135
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/BatchInfo.scala
---
@@ -68,3 +83,20 @@ case class BatchInfo(
*/
def numRecords: Long = streamIdToInputInfo.values.map(_.numRecords).sum
}
+
+@DeveloperApi
+object BatchInfo {
+
+ /**
+ * Create `BatchInfo`. This is for binary compatibility.
+ */
+ def apply(
--- End diff --
This is also a new public method. Lets now add any public method since I
dont want to expose new public methods without thinking. Also, technically they
shouldnt be creating the objects of this class anyways. Also, it dont see a
real need to expose a companion object.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]