public class WindowContextImpl extends Object implements WindowContext
| Constructor and Description |
|---|
WindowContextImpl(Context context) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCounter(String key) |
String |
getFunctionId() |
String |
getFunctionName() |
String |
getFunctionVersion() |
Collection<String> |
getInputTopics() |
int |
getInstanceId() |
org.slf4j.Logger |
getLogger() |
String |
getNamespace() |
int |
getNumInstances() |
String |
getOutputSchemaType() |
String |
getOutputTopic() |
ByteBuffer |
getState(String key) |
String |
getTenant() |
Map<String,Object> |
getUserConfigMap() |
Optional<Object> |
getUserConfigValue(String key) |
Object |
getUserConfigValueOrDefault(String key,
Object defaultValue) |
void |
incrCounter(String key,
long amount) |
<O> CompletableFuture<Void> |
publish(String topicName,
O object) |
CompletableFuture<Void> |
publish(String topicName,
Object object,
String schemaOrSerdeClassName) |
void |
putState(String key,
ByteBuffer value) |
void |
recordMetric(String metricName,
double value) |
public WindowContextImpl(Context context)
public String getTenant()
getTenant in interface WindowContextpublic String getNamespace()
getNamespace in interface WindowContextpublic String getFunctionName()
getFunctionName in interface WindowContextpublic String getFunctionId()
getFunctionId in interface WindowContextpublic int getInstanceId()
getInstanceId in interface WindowContextpublic int getNumInstances()
getNumInstances in interface WindowContextpublic String getFunctionVersion()
getFunctionVersion in interface WindowContextpublic Collection<String> getInputTopics()
getInputTopics in interface WindowContextpublic String getOutputTopic()
getOutputTopic in interface WindowContextpublic String getOutputSchemaType()
getOutputSchemaType in interface WindowContextpublic org.slf4j.Logger getLogger()
getLogger in interface WindowContextpublic void incrCounter(String key, long amount)
incrCounter in interface WindowContextpublic long getCounter(String key)
getCounter in interface WindowContextpublic void putState(String key, ByteBuffer value)
putState in interface WindowContextpublic ByteBuffer getState(String key)
getState in interface WindowContextpublic Map<String,Object> getUserConfigMap()
getUserConfigMap in interface WindowContextpublic Optional<Object> getUserConfigValue(String key)
getUserConfigValue in interface WindowContextpublic Object getUserConfigValueOrDefault(String key, Object defaultValue)
getUserConfigValueOrDefault in interface WindowContextpublic void recordMetric(String metricName, double value)
recordMetric in interface WindowContextpublic <O> CompletableFuture<Void> publish(String topicName, O object)
publish in interface WindowContextpublic CompletableFuture<Void> publish(String topicName, Object object, String schemaOrSerdeClassName)
publish in interface WindowContextCopyright © 2017–2021 Apache Software Foundation. All rights reserved.