Ayoub Omari created KAFKA-16458:
-----------------------------------
Summary: Add contains method in KeyValue store interface
Key: KAFKA-16458
URL: https://issues.apache.org/jira/browse/KAFKA-16458
Project: Kafka
Issue Type: Wish
Components: streams
Reporter: Ayoub Omari
In some stream processors, we sometimes just want to check if a key exists in
the state store or not.
I find calling .get() and checking if the return value is null a little bit
verbose
{code:java}
if (store.get(key) != null) {
}{code}
But I am not sure if it is on purpose that we would like to keep the store
interface simple.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)