类 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
  • 构造器详细资料

    • WindowContextImpl

      public WindowContextImpl(org.apache.pulsar.functions.api.Context context)
  • 方法详细资料

    • getTenant

      public String getTenant()
      指定者:
      getTenant 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getNamespace

      public String getNamespace()
      指定者:
      getNamespace 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getFunctionName

      public String getFunctionName()
      指定者:
      getFunctionName 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getFunctionId

      public String 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

      public String getFunctionVersion()
      指定者:
      getFunctionVersion 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getInputTopics

      public Collection<String> getInputTopics()
      指定者:
      getInputTopics 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getOutputTopic

      public String getOutputTopic()
      指定者:
      getOutputTopic 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getOutputSchemaType

      public String getOutputSchemaType()
      指定者:
      getOutputSchemaType 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getLogger

      public org.slf4j.Logger getLogger()
      指定者:
      getLogger 在接口中 org.apache.pulsar.functions.api.WindowContext
    • incrCounter

      public void incrCounter(String key, long amount)
      指定者:
      incrCounter 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getCounter

      public long getCounter(String key)
      指定者:
      getCounter 在接口中 org.apache.pulsar.functions.api.WindowContext
    • putState

      public void putState(String key, ByteBuffer value)
      指定者:
      putState 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getState

      public ByteBuffer getState(String key)
      指定者:
      getState 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getUserConfigMap

      public Map<String,Object> getUserConfigMap()
      指定者:
      getUserConfigMap 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getUserConfigValue

      public Optional<Object> getUserConfigValue(String key)
      指定者:
      getUserConfigValue 在接口中 org.apache.pulsar.functions.api.WindowContext
    • getUserConfigValueOrDefault

      public Object getUserConfigValueOrDefault(String key, Object defaultValue)
      指定者:
      getUserConfigValueOrDefault 在接口中 org.apache.pulsar.functions.api.WindowContext
    • recordMetric

      public void recordMetric(String metricName, double value)
      指定者:
      recordMetric 在接口中 org.apache.pulsar.functions.api.WindowContext
    • publish

      public <O> CompletableFuture<Void> publish(String topicName, O object)
      指定者:
      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