@Experimental public abstract class PlanReference extends Object
A plan represents a static, executable entity that has been compiled from a Table & SQL API pipeline definition.
You can load the content of this reference into a CompiledPlan
using TableEnvironment.loadPlan(PlanReference)
, or you can directly load and execute it with TableEnvironment.executePlan(PlanReference)
.
CompiledPlan
Modifier and Type | Class and Description |
---|---|
static class |
PlanReference.ContentPlanReference
Plan reference to a string containing the serialized persisted plan in JSON.
|
static class |
PlanReference.FilePlanReference
Plan reference to a file in the local filesystem.
|
static class |
PlanReference.ResourcePlanReference
Plan reference to a file in the provided
ClassLoader . |
Modifier and Type | Method and Description |
---|---|
static PlanReference |
fromFile(File file)
Create a reference starting from a file path.
|
static PlanReference |
fromFile(Path path) |
static PlanReference |
fromFile(String path) |
static PlanReference |
fromJsonString(String jsonString)
Create a reference starting from a JSON string.
|
static PlanReference |
fromResource(ClassLoader classLoader,
String resourcePath)
Create a reference from a file in the classpath.
|
static PlanReference |
fromResource(String resourcePath)
Create a reference from a file in the classpath, using
Thread.currentThread().getContextClassLoader() as ClassLoader . |
public static PlanReference fromFile(String path)
fromFile(File)
public static PlanReference fromFile(Path path)
fromFile(File)
public static PlanReference fromFile(File file)
public static PlanReference fromJsonString(String jsonString)
public static PlanReference fromResource(String resourcePath)
Thread.currentThread().getContextClassLoader()
as ClassLoader
.public static PlanReference fromResource(ClassLoader classLoader, String resourcePath)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.