public abstract class StormSql extends Object
The StormSql class provides standalone, interactive interfaces to execute SQL statements over streaming data.
The StormSql class is stateless. The user needs to submit the data definition language (DDL) statements and the query statements in the same batch.
Constructor and Description |
---|
StormSql() |
Modifier and Type | Method and Description |
---|---|
static StormSql |
construct() |
abstract void |
execute(Iterable<String> statements,
ChannelHandler handler)
Execute the SQL statements in stand-alone mode.
|
abstract void |
explain(Iterable<String> statements)
Print out query plan for each query.
|
abstract void |
submit(String name,
Iterable<String> statements,
Map<String,?> stormConf,
SubmitOptions opts,
StormSubmitter.ProgressListener progressListener,
String asUser)
Submit the SQL statements to Nimbus and run it as a topology.
|
public abstract void execute(Iterable<String> statements, ChannelHandler handler) throws Exception
Execute the SQL statements in stand-alone mode. The user can retrieve the result by passing in an instance of ChannelHandler
.
Exception
public abstract void submit(String name, Iterable<String> statements, Map<String,?> stormConf, SubmitOptions opts, StormSubmitter.ProgressListener progressListener, String asUser) throws Exception
Submit the SQL statements to Nimbus and run it as a topology.
Exception
public abstract void explain(Iterable<String> statements) throws Exception
Print out query plan for each query.
Exception
public static StormSql construct()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.