ENTITY
- Entity typepublic interface SqlStreamOptimizer<ENTITY>
Modifier and Type | Method and Description |
---|---|
<P extends Pipeline> |
metrics(P initialPipeline,
DbmsType dbmsType)
Returns a metric of how well this optimizer can optimize the given
pipeline.
|
<P extends Pipeline> |
optimize(P initialPipeline,
SqlStreamOptimizerInfo<ENTITY> info,
AsynchronousQueryResult<ENTITY> query)
Returns an optimized pipeline, potentially by modifying the query.
|
<P extends Pipeline> Metrics metrics(P initialPipeline, DbmsType dbmsType)
Integer.MAX_VALUE
. If this optimizer cannot optimize the pipeline
at all, then 0
should be returned.
As a rule of thumb, metrics could return the number of steps in the pipeline that it is able to eliminate times 10.
P
- Pipeline typeinitialPipeline
- to optimizedbmsType
- the type of the database<P extends Pipeline> P optimize(P initialPipeline, SqlStreamOptimizerInfo<ENTITY> info, AsynchronousQueryResult<ENTITY> query)
P
- Pipeline typeinitialPipeline
- to useinfo
- about the SQLquery
- to optimizeCopyright © 2018 Speedment, Inc.. All rights reserved.