| Modifier and Type | Class and Description |
|---|---|
private static class |
Contexts.ChainContext
Context that wraps a chain of contexts.
|
(package private) static class |
Contexts.EmptyContext
Empty context.
|
private static class |
Contexts.WrapContext
Context that wraps an object.
|
| Modifier and Type | Field and Description |
|---|---|
static Contexts.EmptyContext |
EMPTY_CONTEXT |
| Modifier | Constructor and Description |
|---|---|
private |
Contexts() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
build(List<Context> list,
Context context)
Recursively populates a list of contexts.
|
static Context |
chain(Context... contexts)
Returns a context that wraps a list of contexts.
|
private static Context |
chain(Iterable<? extends Context> contexts) |
static Context |
empty()
Returns a context that returns null for all inquiries.
|
static Context |
of(Object... os)
Returns a context that wraps an array of objects, ignoring any nulls.
|
static Context |
of(Object o)
Returns a context that wraps an object.
|
static Context |
withConfig(CalciteConnectionConfig config)
Deprecated.
|
public static final Contexts.EmptyContext EMPTY_CONTEXT
@Deprecated public static Context withConfig(CalciteConnectionConfig config)
of(java.lang.Object)CalciteConnectionConfig.public static Context empty()
public static Context of(Object o)
A call to unwrap(C) will return target if it is an
instance of C.
public static Context of(Object... os)
public static Context chain(Context... contexts)
A call to unwrap(C) will return the first object that is an
instance of C.
If any of the contexts is a Context, recursively looks in that
object. Thus this method can be used to chain contexts.
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.