Package org.apache.calcite.jdbc
Class CalciteConnectionImpl.CalciteServerImpl
- java.lang.Object
-
- org.apache.calcite.jdbc.CalciteConnectionImpl.CalciteServerImpl
-
- All Implemented Interfaces:
CalciteServer
- Enclosing class:
- CalciteConnectionImpl
private static class CalciteConnectionImpl.CalciteServerImpl extends java.lang.Object implements CalciteServer
Implementation of Server.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<java.lang.Integer,CalciteServerStatement>
statementMap
-
Constructor Summary
Constructors Modifier Constructor Description private
CalciteServerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStatement(CalciteConnection connection, org.apache.calcite.avatica.Meta.StatementHandle h)
CalciteServerStatement
getStatement(org.apache.calcite.avatica.Meta.StatementHandle h)
Returns the statement with a given handle.void
removeStatement(org.apache.calcite.avatica.Meta.StatementHandle h)
-
-
-
Field Detail
-
statementMap
final java.util.Map<java.lang.Integer,CalciteServerStatement> statementMap
-
-
Method Detail
-
removeStatement
public void removeStatement(org.apache.calcite.avatica.Meta.StatementHandle h)
- Specified by:
removeStatement
in interfaceCalciteServer
-
addStatement
public void addStatement(CalciteConnection connection, org.apache.calcite.avatica.Meta.StatementHandle h)
- Specified by:
addStatement
in interfaceCalciteServer
-
getStatement
public CalciteServerStatement getStatement(org.apache.calcite.avatica.Meta.StatementHandle h) throws org.apache.calcite.avatica.NoSuchStatementException
Description copied from interface:CalciteServer
Returns the statement with a given handle.- Specified by:
getStatement
in interfaceCalciteServer
- Parameters:
h
- Statement handle- Returns:
- Statement, never null
- Throws:
org.apache.calcite.avatica.NoSuchStatementException
- if handle does not represent a statement
-
-