Skip to content

Commit e206fff

Browse files
committed
initial commit
1 parent 92e7ecb commit e206fff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/core/src/main/java/org/apache/spark/sql/execution/BufferedRowIterator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public long durationMs() {
6565
/**
6666
* Append a row to currentRows.
6767
*/
68-
protected void append(InternalRow row) {
68+
public void append(InternalRow row) {
6969
currentRows.add(row);
7070
}
7171

@@ -75,7 +75,7 @@ protected void append(InternalRow row) {
7575
* If it returns true, the caller should exit the loop that [[InputAdapter]] generates.
7676
* This interface is mainly used to limit the number of input rows.
7777
*/
78-
protected boolean stopEarly() {
78+
public boolean stopEarly() {
7979
return false;
8080
}
8181

@@ -84,14 +84,14 @@ protected boolean stopEarly() {
8484
*
8585
* If it returns true, the caller should exit the loop (return from processNext()).
8686
*/
87-
protected boolean shouldStop() {
87+
public boolean shouldStop() {
8888
return !currentRows.isEmpty();
8989
}
9090

9191
/**
9292
* Increase the peak execution memory for current task.
9393
*/
94-
protected void incPeakExecutionMemory(long size) {
94+
public void incPeakExecutionMemory(long size) {
9595
TaskContext.get().taskMetrics().incPeakExecutionMemory(size);
9696
}
9797

0 commit comments

Comments
 (0)