Package org.apache.calcite.plan
Class Contexts
java.lang.Object
org.apache.calcite.plan.Contexts
Utilities for
Context
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.calcite.plan.Contexts.EmptyContext
-
Method Summary
Modifier and TypeMethodDescriptionstatic Context
Returns a context that wraps a list of contexts.static Context
empty()
Returns a context that returns null for all inquiries.static Context
Returns a context that wraps an array of objects, ignoring any nulls.static Context
Returns a context that wraps an object.static Context
withConfig
(CalciteConnectionConfig config) Deprecated.
-
Field Details
-
EMPTY_CONTEXT
public static final org.apache.calcite.plan.Contexts.EmptyContext EMPTY_CONTEXT
-
-
Method Details
-
withConfig
Deprecated.Returns a context that contains aCalciteConnectionConfig
. -
empty
Returns a context that returns null for all inquiries. -
of
Returns a context that wraps an object.A call to
unwrap(C)
will returntarget
if it is an instance ofC
. -
of
Returns a context that wraps an array of objects, ignoring any nulls. -
chain
Returns a context that wraps a list of contexts.A call to
unwrap(C)
will return the first object that is an instance ofC
.If any of the contexts is a
Context
, recursively looks in that object. Thus this method can be used to chain contexts.
-
of(java.lang.Object)