Class WindowContextImpl
java.lang.Object
org.apache.pulsar.functions.windowing.WindowContextImpl
- All Implemented Interfaces:
WindowContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetCounter(String key) intorg.slf4j.LoggerintgetUserConfigValue(String key) getUserConfigValueOrDefault(String key, Object defaultValue) voidincrCounter(String key, long amount) <T> CompletableFuture<Void>voidputState(String key, ByteBuffer value) voidrecordMetric(String metricName, double value)
-
Constructor Details
-
WindowContextImpl
-
-
Method Details
-
getTenant
- Specified by:
getTenantin interfaceWindowContext
-
getNamespace
- Specified by:
getNamespacein interfaceWindowContext
-
getFunctionName
- Specified by:
getFunctionNamein interfaceWindowContext
-
getFunctionId
- Specified by:
getFunctionIdin interfaceWindowContext
-
getInstanceId
public int getInstanceId()- Specified by:
getInstanceIdin interfaceWindowContext
-
getNumInstances
public int getNumInstances()- Specified by:
getNumInstancesin interfaceWindowContext
-
getFunctionVersion
- Specified by:
getFunctionVersionin interfaceWindowContext
-
getInputTopics
- Specified by:
getInputTopicsin interfaceWindowContext
-
getOutputTopic
- Specified by:
getOutputTopicin interfaceWindowContext
-
getOutputSchemaType
- Specified by:
getOutputSchemaTypein interfaceWindowContext
-
getLogger
public org.slf4j.Logger getLogger()- Specified by:
getLoggerin interfaceWindowContext
-
incrCounter
- Specified by:
incrCounterin interfaceWindowContext
-
getCounter
- Specified by:
getCounterin interfaceWindowContext
-
putState
- Specified by:
putStatein interfaceWindowContext
-
getState
- Specified by:
getStatein interfaceWindowContext
-
getUserConfigMap
- Specified by:
getUserConfigMapin interfaceWindowContext
-
getUserConfigValue
- Specified by:
getUserConfigValuein interfaceWindowContext
-
getUserConfigValueOrDefault
- Specified by:
getUserConfigValueOrDefaultin interfaceWindowContext
-
recordMetric
- Specified by:
recordMetricin interfaceWindowContext
-
publish
- Specified by:
publishin interfaceWindowContext
-
publish
public CompletableFuture<Void> publish(String topicName, Object object, String schemaOrSerdeClassName) - Specified by:
publishin interfaceWindowContext
-