Package org.apache.druid.sql
Class SqlStatementFactory
java.lang.Object
org.apache.druid.sql.SqlStatementFactory
A class for the creation of Statements, which happen to be used for Sql.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlStatementFactory(SqlToolbox lifecycleToolbox) The construction of these objects in the production code is a bit circuitous. -
Method Summary
Modifier and TypeMethodDescriptiondirectStatement(SqlQueryPlus sqlRequest) httpStatement(SqlQueryPlus sqlQueryPlus, javax.servlet.http.HttpServletRequest req) preparedStatement(SqlQueryPlus sqlRequest)
-
Constructor Details
-
SqlStatementFactory
The construction of these objects in the production code is a bit circuitous. Specifically, the SqlToolbox looks like it can be normally injected, except it actually expects to be mutated with a SqlEngine before being injected. This is generally accomplished with Guice, examples of which can be seen in the SqlStatementFactoryModule.- Parameters:
lifecycleToolbox-
-
-
Method Details
-
httpStatement
public HttpStatement httpStatement(SqlQueryPlus sqlQueryPlus, javax.servlet.http.HttpServletRequest req) -
directStatement
-
preparedStatement
-