public class Query extends Object implements Configurable, Serializable
Constructor and Description |
---|
Query(Projection projection,
Expression filter,
Aggregation aggregation,
List<PostAggregation> postAggregations,
Window window,
Long duration)
Constructor that creates the Bullet query.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(BulletConfig config)
Takes a
BulletConfig containing configuration and applies it to itself. |
String |
toString() |
public Query(Projection projection, Expression filter, Aggregation aggregation, List<PostAggregation> postAggregations, Window window, Long duration)
projection
- The non-null projection that decides which fields are selected from a Bullet record before aggregation.filter
- The filter expression records must pass before projection. Can be null.aggregation
- The non-null aggregation that takes projected records.postAggregations
- The list of post-aggregations that are executed on records before getting results. Can be null.window
- The non-null window that decides when and how results are returned.duration
- The duration of the query. Can be null.public void configure(BulletConfig config)
Configurable
BulletConfig
containing configuration and applies it to itself.configure
in interface Configurable
config
- The configuration containing the settings.Copyright © 2021. All rights reserved.