Skip to content

Commit 01b7a3e

Browse files
Update scaladoc for a field and move it to @param section.
1 parent 549061c commit 01b7a3e

File tree

1 file changed

+4
-5
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical

1 file changed

+4
-5
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ abstract class LogicalPlan extends QueryPlan[LogicalPlan] {
3131
* Estimates of various statistics. The default estimation logic simply sums up the corresponding
3232
* statistic produced by the children. To override this behavior, override `statistics` and
3333
* assign it a overriden version of `Statistics`.
34+
*
35+
* @param sizeInBytes Physical size in bytes. For leaf operators this defaults to 1, otherwise it
36+
* defaults to the product of children's `sizeInBytes`.
3437
*/
3538
case class Statistics(
36-
/**
37-
* Physical size in bytes. For leaf operators this defaults to 1, otherwise it is set to the
38-
* product of children's `sizeInBytes`.
39-
*/
4039
sizeInBytes: Long = childrenStats.map(_.sizeInBytes).product
4140
)
4241
lazy val statistics: Statistics = new Statistics
@@ -108,7 +107,7 @@ abstract class LogicalPlan extends QueryPlan[LogicalPlan] {
108107
abstract class LeafNode extends LogicalPlan with trees.LeafNode[LogicalPlan] {
109108
self: Product =>
110109

111-
override lazy val statistics = Statistics(numTuples = 1L, sizeInBytes = 1L)
110+
override lazy val statistics = Statistics(sizeInBytes = 1L)
112111

113112
// Leaf nodes by definition cannot reference any input attributes.
114113
override def references = Set.empty

0 commit comments

Comments
 (0)