Skip to content

Commit 4ab9bda

Browse files
author
Mukul Murthy
committed
make helper methods private
1 parent 74d5b6b commit 4ab9bda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/memory.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class MemorySink(val schema: StructType, outputMode: OutputMode, options: DataSo
336336
numRows = 0
337337
}
338338

339-
def truncateRowsIfNeeded(rows: Array[Row], maxRows: Int, batchId: Long): Array[Row] = {
339+
private def truncateRowsIfNeeded(rows: Array[Row], maxRows: Int, batchId: Long): Array[Row] = {
340340
if (rows.length > maxRows) {
341341
logWarning(s"Truncating batch $batchId to $maxRows rows")
342342
rows.take(maxRows)

sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/memoryV2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class MemorySinkV2 extends DataSourceV2 with StreamWriteSupport with MemorySinkB
129129
numRows = 0
130130
}
131131

132-
def truncateRowsIfNeeded(rows: Array[Row], maxRows: Int, batchId: Long): Array[Row] = {
132+
private def truncateRowsIfNeeded(rows: Array[Row], maxRows: Int, batchId: Long): Array[Row] = {
133133
if (rows.length > maxRows) {
134134
logWarning(s"Truncating batch $batchId to $maxRows rows")
135135
rows.take(maxRows)

0 commit comments

Comments
 (0)