Patrick Stuedi created KAFKA-13541:
--------------------------------------

             Summary: Make IQv2 query/store interface type safe
                 Key: KAFKA-13541
                 URL: https://issues.apache.org/jira/browse/KAFKA-13541
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Patrick Stuedi
            Assignee: Patrick Stuedi


Currently the new IQv2 interface allows applications to query state stores 
using subclasses of the Query<V> type. Unfortunately there is currently no way 
to check that the template type of the query matches the type of the relevant 
store the query is executed on. As a consequence stores have to do a set of 
unsafe casts.

This ticket is to explore ways to make the query interface type safe where only 
type mismatches are detected at compile time.  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to