Package com.tonic.analysis.query.exec
Class QueryService.QueryConfig
- java.lang.Object
-
- com.tonic.analysis.query.exec.QueryService.QueryConfig
-
- Enclosing class:
- QueryService
public static final class QueryService.QueryConfig extends Object
Runtime knobs for a query run - currently just the wall-clock budget that aborts long scans.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueryService.QueryConfig.BuilderAccumulator for a QueryConfig.
-
Constructor Summary
Constructors Constructor Description QueryConfig(long timeBudgetMs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryService.QueryConfig.Builderbuilder()booleanequals(Object o)inthashCode()longtimeBudgetMs()
-
-
-
Method Detail
-
timeBudgetMs
public long timeBudgetMs()
- Returns:
- the budget in milliseconds
-
builder
public static QueryService.QueryConfig.Builder builder()
- Returns:
- a new builder, preset to a 60 second budget
-
-