Class DistributedQueryExecutionDelegatee
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.query.DistributedQueryExecutionDelegatee
-
- All Implemented Interfaces:
QueryExecutionDelegatee
public class DistributedQueryExecutionDelegatee extends Object implements QueryExecutionDelegatee
-
-
Constructor Summary
Constructors Constructor Description DistributedQueryExecutionDelegatee(RemoteQueryCallFactory callFactory)
Creates a newDistributedQueryExecutionDelegatee
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
QueryResult<K,V>execute(KafkaStreamsContainer container, QueryRequest queryRequest, QueryOptions queryOptions)
Class<? extends KafkaStreamsContainer>
supportedClass()
Gets theKafkaStreamsContainer
class that is supported by thisQueryExecutionDelegatee
.
-
-
-
Constructor Detail
-
DistributedQueryExecutionDelegatee
public DistributedQueryExecutionDelegatee(RemoteQueryCallFactory callFactory)
Creates a newDistributedQueryExecutionDelegatee
instance.- Parameters:
callFactory
- theRemoteQueryCallFactory
.
-
-
Method Detail
-
supportedClass
public Class<? extends KafkaStreamsContainer> supportedClass()
Gets theKafkaStreamsContainer
class that is supported by thisQueryExecutionDelegatee
.- Specified by:
supportedClass
in interfaceQueryExecutionDelegatee
- Returns:
- the supported
KafkaStreamsContainer
class.
-
execute
public <K,V> QueryResult<K,V> execute(KafkaStreamsContainer container, QueryRequest queryRequest, QueryOptions queryOptions)
- Specified by:
execute
in interfaceQueryExecutionDelegatee
- Type Parameters:
K
- the expected type for the record-key.V
- the expected type for the record-value.- Parameters:
container
- theKafkaStreamsContainer
object.queryRequest
- theQueryRequest
to be execute.queryOptions
- theQueryOptions
that should be used for executing the query.- Returns:
- the
QueryResult
.
-
-