类 WindowContextImpl
java.lang.Object
org.apache.pulsar.functions.windowing.WindowContextImpl
- 所有已实现的接口:
org.apache.pulsar.functions.api.WindowContext
public class WindowContextImpl
extends Object
implements org.apache.pulsar.functions.api.WindowContext
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longgetCounter(String key) intorg.slf4j.LoggerintgetUserConfigValue(String key) getUserConfigValueOrDefault(String key, Object defaultValue) voidincrCounter(String key, long amount) <O> CompletableFuture<Void>voidputState(String key, ByteBuffer value) voidrecordMetric(String metricName, double value)
-
构造器详细资料
-
WindowContextImpl
public WindowContextImpl(org.apache.pulsar.functions.api.Context context)
-
-
方法详细资料
-
getTenant
- 指定者:
getTenant在接口中org.apache.pulsar.functions.api.WindowContext
-
getNamespace
- 指定者:
getNamespace在接口中org.apache.pulsar.functions.api.WindowContext
-
getFunctionName
- 指定者:
getFunctionName在接口中org.apache.pulsar.functions.api.WindowContext
-
getFunctionId
- 指定者:
getFunctionId在接口中org.apache.pulsar.functions.api.WindowContext
-
getInstanceId
public int getInstanceId()- 指定者:
getInstanceId在接口中org.apache.pulsar.functions.api.WindowContext
-
getNumInstances
public int getNumInstances()- 指定者:
getNumInstances在接口中org.apache.pulsar.functions.api.WindowContext
-
getFunctionVersion
- 指定者:
getFunctionVersion在接口中org.apache.pulsar.functions.api.WindowContext
-
getInputTopics
- 指定者:
getInputTopics在接口中org.apache.pulsar.functions.api.WindowContext
-
getOutputTopic
- 指定者:
getOutputTopic在接口中org.apache.pulsar.functions.api.WindowContext
-
getOutputSchemaType
- 指定者:
getOutputSchemaType在接口中org.apache.pulsar.functions.api.WindowContext
-
getLogger
public org.slf4j.Logger getLogger()- 指定者:
getLogger在接口中org.apache.pulsar.functions.api.WindowContext
-
incrCounter
- 指定者:
incrCounter在接口中org.apache.pulsar.functions.api.WindowContext
-
getCounter
- 指定者:
getCounter在接口中org.apache.pulsar.functions.api.WindowContext
-
putState
- 指定者:
putState在接口中org.apache.pulsar.functions.api.WindowContext
-
getState
- 指定者:
getState在接口中org.apache.pulsar.functions.api.WindowContext
-
getUserConfigMap
- 指定者:
getUserConfigMap在接口中org.apache.pulsar.functions.api.WindowContext
-
getUserConfigValue
- 指定者:
getUserConfigValue在接口中org.apache.pulsar.functions.api.WindowContext
-
getUserConfigValueOrDefault
- 指定者:
getUserConfigValueOrDefault在接口中org.apache.pulsar.functions.api.WindowContext
-
recordMetric
- 指定者:
recordMetric在接口中org.apache.pulsar.functions.api.WindowContext
-
publish
- 指定者:
publish在接口中org.apache.pulsar.functions.api.WindowContext
-
publish
public CompletableFuture<Void> publish(String topicName, Object object, String schemaOrSerdeClassName) - 指定者:
publish在接口中org.apache.pulsar.functions.api.WindowContext
-