Package se.l4.silo.query
Interface QueryType<EntityDataType,ResultType,QueryBuilder extends Query<?>>
-
- Type Parameters:
ResultType-QueryBuilder-
- All Known Implementing Classes:
IndexQueryType
public interface QueryType<EntityDataType,ResultType,QueryBuilder extends Query<?>>Type interface that creates instances ofQuery. When anEntityis queried the query type is responsible for creating aQueryinstance that calls aQueryRunnerto execute the query and transform the results.A
QueryTypehas three generic attributes,EntityDataTypeis the type the entity works with, such asStreamingInputforStructuredEntityor any object type forObjectEntity. It is assumed that theEntityDataTypecan be modified to support composing of queries.- Author:
- Andreas Holstenson
-
-
Method Summary
Modifier and Type Method Description QueryBuildercreate(QueryRunner<EntityDataType,ResultType> runner)Create a new query for the given result type.
-
-
-
Method Detail
-
create
QueryBuilder create(QueryRunner<EntityDataType,ResultType> runner)
Create a new query for the given result type.- Parameters:
type-runner-- Returns:
-
-