public class DataContexts extends Object
DataContext.| Modifier and Type | Field and Description |
|---|---|
static DataContext |
EMPTY
Instance of
DataContext that has no variables. |
| Modifier and Type | Method and Description |
|---|---|
static DataContext |
of(CalciteConnection connection,
@Nullable SchemaPlus rootSchema)
Returns an instance of
DataContext with the given connection
and root schema but no variables. |
static DataContext |
of(Function<String,? extends Object> fn)
Returns an instance of
DataContext with the given function. |
static DataContext |
of(Map<String,?> map)
Returns an instance of
DataContext with the given map. |
public static final DataContext EMPTY
DataContext that has no variables.public static DataContext of(Map<String,?> map)
DataContext with the given map.public static DataContext of(Function<String,? extends Object> fn)
DataContext with the given function.public static DataContext of(CalciteConnection connection, @Nullable SchemaPlus rootSchema)
DataContext with the given connection
and root schema but no variables.Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.