@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| 限定符和类型 | 类和说明 |
|---|---|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2023 The Apache Software Foundation. All rights reserved.