Class TableResultImpl.Builder
java.lang.Object
org.apache.flink.table.api.internal.TableResultImpl.Builder
- Enclosing class:
- TableResultImpl
Builder for creating a
TableResultImpl.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aTableResultinstance.Specifies an row list as the execution result.jobClient(org.apache.flink.core.execution.JobClient jobClient) Specifies job client which associates the submitted Flink job.resultKind(ResultKind resultKind) Specifies result kind of the execution result.resultProvider(ResultProvider resultProvider) schema(org.apache.flink.table.catalog.ResolvedSchema resolvedSchema) Specifies schema of the execution result.setCachedPlan(CachedPlan cachedPlan) Specifies cached plan which associates the submitted Flink job.setPrintStyle(org.apache.flink.table.utils.print.PrintStyle printStyle) Specifies print style.
-
Method Details
-
jobClient
Specifies job client which associates the submitted Flink job.- Parameters:
jobClient- aJobClientfor the submitted Flink job.
-
schema
Specifies schema of the execution result.- Parameters:
resolvedSchema- aResolvedSchemafor the execution result.
-
resultKind
Specifies result kind of the execution result.- Parameters:
resultKind- aResultKindfor the execution result.
-
resultProvider
-
data
Specifies an row list as the execution result.- Parameters:
rowList- a row list as the execution result.
-
setPrintStyle
public TableResultImpl.Builder setPrintStyle(org.apache.flink.table.utils.print.PrintStyle printStyle) Specifies print style. Default isTableauStylewith max integer column width. -
setCachedPlan
Specifies cached plan which associates the submitted Flink job.- Parameters:
cachedPlan- aCachedPlanfor the submitted Flink job.
-
build
Returns aTableResultinstance.
-