public class Frameworks extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Frameworks.ConfigBuilder
A builder to help you build a
FrameworkConfig using defaults
where values aren't required. |
static interface |
Frameworks.PlannerAction<R>
Piece of code to be run in a context where a planner is available.
|
static class |
Frameworks.PrepareAction<R>
Piece of code to be run in a context where a planner and statement are
available.
|
| Modifier and Type | Method and Description |
|---|---|
static SchemaPlus |
createRootSchema(boolean addMetadataSchema)
Creates a root schema.
|
static Planner |
getPlanner(FrameworkConfig config)
Creates a planner.
|
static Frameworks.ConfigBuilder |
newConfigBuilder() |
static <R> R |
withPlanner(Frameworks.PlannerAction<R> action)
Initializes a container then calls user-specified code with a planner.
|
static <R> R |
withPlanner(Frameworks.PlannerAction<R> action,
FrameworkConfig config)
Initializes a container then calls user-specified code with a planner.
|
static <R> R |
withPrepare(Frameworks.PrepareAction<R> action)
Initializes a container then calls user-specified code with a planner
and statement.
|
public static Planner getPlanner(FrameworkConfig config)
config - Planner configurationpublic static <R> R withPlanner(Frameworks.PlannerAction<R> action, FrameworkConfig config)
action - Callback containing user-specified codeconfig - FrameworkConfig to use for planner action.public static <R> R withPlanner(Frameworks.PlannerAction<R> action)
action - Callback containing user-specified codepublic static <R> R withPrepare(Frameworks.PrepareAction<R> action)
action - Callback containing user-specified codepublic static SchemaPlus createRootSchema(boolean addMetadataSchema)
addMetadataSchema - Whether to add "metadata" schema containing
definitions of tables, columns etc.public static Frameworks.ConfigBuilder newConfigBuilder()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.