File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
main/java/com/teragrep/pth_15
test/java/com/teragrep/pth_15 Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 48
48
import org .apache .spark .sql .Dataset ;
49
49
import org .apache .spark .sql .Row ;
50
50
import org .apache .spark .sql .SparkSession ;
51
- import org .apache .spark .sql .streaming .StreamingQuery ;
52
- import org .apache .spark .sql .streaming .StreamingQueryListener ;
53
51
54
52
import java .util .concurrent .TimeoutException ;
55
53
import java .util .function .BiConsumer ;
56
- import java .util .function .Consumer ;
57
54
58
55
public interface DPLExecutor {
59
56
60
57
public DPLExecutorResult interpret (
61
58
BiConsumer <Dataset <Row >, Boolean > batchHandler ,
62
- BiConsumer <StreamingQuery , StreamingQueryListener .QueryStartedEvent > queryStartedConsumer ,
63
- BiConsumer <StreamingQuery , StreamingQueryListener .QueryProgressEvent > queryProgressConsumer ,
64
- BiConsumer <StreamingQuery , StreamingQueryListener .QueryTerminatedEvent > queryTerminatedConsumer ,
65
- Consumer <String > initialLogConsumer ,
66
59
SparkSession sparkSession ,
60
+ String queryId ,
67
61
String noteId ,
68
62
String paragraphId ,
69
63
String lines
Original file line number Diff line number Diff line change 49
49
import org .apache .spark .sql .Dataset ;
50
50
import org .apache .spark .sql .Row ;
51
51
import org .apache .spark .sql .SparkSession ;
52
- import org .apache .spark .sql .streaming .StreamingQuery ;
53
- import org .apache .spark .sql .streaming .StreamingQueryListener ;
54
52
55
53
import java .util .concurrent .TimeoutException ;
56
54
import java .util .function .BiConsumer ;
57
- import java .util .function .Consumer ;
58
55
59
56
public final class DPLExecutorTestImpl implements DPLExecutor {
60
57
@@ -64,11 +61,8 @@ public DPLExecutorTestImpl(Config ignored) {
64
61
@ Override
65
62
public DPLExecutorResult interpret (
66
63
BiConsumer <Dataset <Row >, Boolean > batchHandler ,
67
- BiConsumer <StreamingQuery , StreamingQueryListener .QueryStartedEvent > queryStartedConsumer ,
68
- BiConsumer <StreamingQuery , StreamingQueryListener .QueryProgressEvent > queryProgressConsumer ,
69
- BiConsumer <StreamingQuery , StreamingQueryListener .QueryTerminatedEvent > queryTerminatedConsumer ,
70
- Consumer <String > initialLogConsumer ,
71
64
SparkSession sparkSession ,
65
+ String queryId ,
72
66
String noteId ,
73
67
String paragraphId ,
74
68
String lines
You can’t perform that action at this time.
0 commit comments