Class WindowContextImpl
java.lang.Object
org.apache.pulsar.functions.windowing.WindowContextImpl
- All Implemented Interfaces:
BaseContext,WindowContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteState(String key) deleteStateAsync(String key) voidlonggetCounter(String key) getCounterAsync(String key) intorg.slf4j.LoggerintgetStateAsync(String key) getUserConfigValue(String key) getUserConfigValueOrDefault(String key, Object defaultValue) voidincrCounter(String key, long amount) incrCounterAsync(String key, long amount) <T> CompletableFuture<Void>voidputState(String key, ByteBuffer value) putStateAsync(String key, ByteBuffer value) voidrecordMetric(String metricName, double value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.api.BaseContext
getPulsarClient, getPulsarClientBuilder, getStateStore, getStateStore
-
Constructor Details
-
WindowContextImpl
-
-
Method Details
-
getTenant
- Specified by:
getTenantin interfaceBaseContext
-
getNamespace
- Specified by:
getNamespacein interfaceBaseContext
-
getFunctionName
- Specified by:
getFunctionNamein interfaceWindowContext
-
getFunctionId
- Specified by:
getFunctionIdin interfaceWindowContext
-
getInstanceId
public int getInstanceId()- Specified by:
getInstanceIdin interfaceBaseContext
-
getNumInstances
public int getNumInstances()- Specified by:
getNumInstancesin interfaceBaseContext
-
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 interfaceBaseContext
-
getSecret
- Specified by:
getSecretin interfaceBaseContext
-
incrCounter
- Specified by:
incrCounterin interfaceBaseContext
-
incrCounterAsync
- Specified by:
incrCounterAsyncin interfaceBaseContext
-
getCounter
- Specified by:
getCounterin interfaceBaseContext
-
getCounterAsync
- Specified by:
getCounterAsyncin interfaceBaseContext
-
putState
- Specified by:
putStatein interfaceBaseContext
-
putStateAsync
- Specified by:
putStateAsyncin interfaceBaseContext
-
getState
- Specified by:
getStatein interfaceBaseContext
-
getStateAsync
- Specified by:
getStateAsyncin interfaceBaseContext
-
deleteState
- Specified by:
deleteStatein interfaceBaseContext
-
deleteStateAsync
- Specified by:
deleteStateAsyncin interfaceBaseContext
-
getUserConfigMap
- Specified by:
getUserConfigMapin interfaceWindowContext
-
getUserConfigValue
- Specified by:
getUserConfigValuein interfaceWindowContext
-
getUserConfigValueOrDefault
- Specified by:
getUserConfigValueOrDefaultin interfaceWindowContext
-
recordMetric
- Specified by:
recordMetricin interfaceBaseContext
-
fatal
- Specified by:
fatalin interfaceBaseContext
-
publish
- Specified by:
publishin interfaceWindowContext
-
publish
public CompletableFuture<Void> publish(String topicName, Object object, String schemaOrSerdeClassName) - Specified by:
publishin interfaceWindowContext
-