Package org.apache.flink.table.api
Class PlanReference
- java.lang.Object
-
- org.apache.flink.table.api.PlanReference
-
- Direct Known Subclasses:
PlanReference.ContentPlanReference,PlanReference.FilePlanReference,PlanReference.ResourcePlanReference
@Experimental public abstract class PlanReference extends Object
Unresolved pointer to a persisted plan.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
CompiledPlanusingTableEnvironment.loadPlan(PlanReference), or you can directly load and execute it withTableEnvironment.executePlan(PlanReference).- See Also:
CompiledPlan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlanReference.ContentPlanReferencePlan reference to a string containing the serialized persisted plan in JSON.static classPlanReference.FilePlanReferencePlan reference to a file in the local filesystem.static classPlanReference.ResourcePlanReferencePlan reference to a file in the providedClassLoader.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlanReferencefromFile(File file)Create a reference starting from a file path.static PlanReferencefromFile(String path)static PlanReferencefromFile(Path path)static PlanReferencefromJsonString(String jsonString)Create a reference starting from a JSON string.static PlanReferencefromResource(ClassLoader classLoader, String resourcePath)Create a reference from a file in the classpath.static PlanReferencefromResource(String resourcePath)Create a reference from a file in the classpath, usingThread.currentThread().getContextClassLoader()asClassLoader.
-
-
-
Method Detail
-
fromFile
public static PlanReference fromFile(String path)
- See Also:
fromFile(File)
-
fromFile
public static PlanReference fromFile(Path path)
- See Also:
fromFile(File)
-
fromFile
public static PlanReference fromFile(File file)
Create a reference starting from a file path.
-
fromJsonString
public static PlanReference fromJsonString(String jsonString)
Create a reference starting from a JSON string.
-
fromResource
public static PlanReference fromResource(String resourcePath)
Create a reference from a file in the classpath, usingThread.currentThread().getContextClassLoader()asClassLoader.
-
fromResource
public static PlanReference fromResource(ClassLoader classLoader, String resourcePath)
Create a reference from a file in the classpath.
-
-