@Internal public final class ConstantFunctionContext extends FunctionContext
FunctionContext for constant expression reduction. It is used when a function is called
with constant expressions or constant expressions can be derived from the given statement.
Since constant expression reduction happens during planning, methods that reference Flink's runtime context are not available.
| 构造器和说明 |
|---|
ConstantFunctionContext(org.apache.flink.configuration.Configuration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
File |
getCachedFile(String name)
Gets the local temporary file copy of a distributed cache files.
|
Set<org.apache.flink.api.common.externalresource.ExternalResourceInfo> |
getExternalResourceInfos(String resourceName)
Get the external resource information.
|
String |
getJobParameter(String key,
String defaultValue)
Gets the global job parameter value associated with the given key as a string.
|
org.apache.flink.metrics.MetricGroup |
getMetricGroup()
Returns the metric group for this parallel subtask.
|
public ConstantFunctionContext(org.apache.flink.configuration.Configuration configuration)
public org.apache.flink.metrics.MetricGroup getMetricGroup()
FunctionContextgetMetricGroup 在类中 FunctionContextpublic File getCachedFile(String name)
FunctionContextgetCachedFile 在类中 FunctionContextname - distributed cache file namepublic String getJobParameter(String key, String defaultValue)
FunctionContextgetJobParameter 在类中 FunctionContextkey - key pointing to the associated valuedefaultValue - default value which is returned in case global job parameter is null or
there is no value associated with the given keypublic Set<org.apache.flink.api.common.externalresource.ExternalResourceInfo> getExternalResourceInfos(String resourceName)
FunctionContextCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.