Package org.apache.calcite.linq4j
Class QueryProviderImpl
java.lang.Object
org.apache.calcite.linq4j.QueryProviderImpl
- All Implemented Interfaces:
QueryProvider
- Direct Known Subclasses:
JdbcQueryProvider
Partial implementation of
QueryProvider.
Derived class needs to implement QueryProvider.executeQuery(org.apache.calcite.linq4j.Queryable<T>).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBinds an expression to this query provider. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Queryable<T>createQuery(Expression expression, Class<T> rowType) Constructs aQueryableobject that can evaluate the query represented by a specified expression tree.<T> Queryable<T>createQuery(Expression expression, Type rowType) Constructs aQueryableobject that can evaluate the query represented by a specified expression tree.<T> Texecute(Expression expression, Class<T> type) Executes the query represented by a specified expression tree.<T> Texecute(Expression expression, Type type) Executes the query represented by a specified expression tree.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.linq4j.QueryProvider
executeQuery
-
Constructor Details
-
QueryProviderImpl
protected QueryProviderImpl()Creates a QueryProviderImpl.
-
-
Method Details
-
createQuery
Description copied from interface:QueryProviderConstructs aQueryableobject that can evaluate the query represented by a specified expression tree.NOTE: The
RawQueryable.getExpression()property of the returnedQueryableobject is equal toexpression.- Specified by:
createQueryin interfaceQueryProvider- Type Parameters:
T- Row type- Parameters:
expression- ExpressionrowType- Row type- Returns:
- Queryable
-
createQuery
Description copied from interface:QueryProviderConstructs aQueryableobject that can evaluate the query represented by a specified expression tree. The row type may contain generic information.- Specified by:
createQueryin interfaceQueryProvider- Type Parameters:
T- Row type- Parameters:
expression- ExpressionrowType- Row type- Returns:
- Queryable
-
execute
Description copied from interface:QueryProviderExecutes the query represented by a specified expression tree.This method executes queries that return a single value (instead of an enumerable sequence of values). Expression trees that represent queries that return enumerable results are executed when the
Queryableobject that contains the expression tree is enumerated.The Queryable standard query operator methods that return singleton results call
execute. They pass it aMethodCallExpressionthat represents a linq4j query.- Specified by:
executein interfaceQueryProvider
-
execute
Description copied from interface:QueryProviderExecutes the query represented by a specified expression tree. The row type may contain type parameters.- Specified by:
executein interfaceQueryProvider
-