Compiles the TSQuery into an array of Query objects for execution. If the user has not set a down sampler explicitly, and they don't want millisecond resolution, then we set the down sampler to 1 second to handle situations where storage may have multiple data points per second. @param tsdb The tsdb
(final TSDB tsdb)
| 218 | * @return An array of queries |
| 219 | */ |
| 220 | public Query[] buildQueries(final TSDB tsdb) { |
| 221 | try { |
| 222 | return buildQueriesAsync(tsdb).joinUninterruptibly(); |
| 223 | } catch (final Exception e) { |
| 224 | throw new RuntimeException("Unexpected exception", e); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Compiles the TSQuery into an array of Query objects for execution. |