You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ayoub Omari (Jira)" <ji...@apache.org> on 2024/04/02 13:27:00 UTC
[jira] [Created] (KAFKA-16458) Add contains method in KeyValue store interface
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)