K
- State key typeV
- State value type@PublicEvolving public class QueryableStateStream<K,V> extends Object
Constructor and Description |
---|
QueryableStateStream(String queryableStateName,
StateDescriptor<?,V> stateDescriptor,
TypeSerializer<K> keySerializer)
Creates a queryable state stream.
|
Modifier and Type | Method and Description |
---|---|
TypeSerializer<K> |
getKeySerializer()
Returns the key serializer for the queryable state instance.
|
String |
getQueryableStateName()
Returns the name under which the state can be queried.
|
StateDescriptor<?,V> |
getStateDescriptor()
Returns the state descriptor for the queryable state instance.
|
public QueryableStateStream(String queryableStateName, StateDescriptor<?,V> stateDescriptor, TypeSerializer<K> keySerializer)
queryableStateName
- Name under which to publish the queryable state instancestateDescriptor
- The state descriptor for the state instancekeySerializer
- Key serializer for the state instancepublic String getQueryableStateName()
public TypeSerializer<K> getKeySerializer()
public StateDescriptor<?,V> getStateDescriptor()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.