Identify the table to be scanned based on the roll up and pre-aggregate query parameters @return table name as byte array @since 2.4
()
| 1551 | * @since 2.4 |
| 1552 | */ |
| 1553 | private byte[] tableToBeScanned() { |
| 1554 | final byte[] tableName; |
| 1555 | |
| 1556 | if (RollupQuery.isValidQuery(rollup_query)) { |
| 1557 | if (pre_aggregate) { |
| 1558 | tableName= rollup_query.getRollupInterval().getGroupbyTable(); |
| 1559 | } |
| 1560 | else { |
| 1561 | tableName= rollup_query.getRollupInterval().getTemporalTable(); |
| 1562 | } |
| 1563 | } |
| 1564 | else if (pre_aggregate) { |
| 1565 | tableName = tsdb.getDefaultInterval().getGroupbyTable(); |
| 1566 | } |
| 1567 | else { |
| 1568 | tableName = tsdb.dataTable(); |
| 1569 | } |
| 1570 | |
| 1571 | return tableName; |
| 1572 | } |
| 1573 | |
| 1574 | /** Returns the UNIX timestamp from which we must start scanning. */ |
| 1575 | long getScanStartTimeSeconds() { |
no test coverage detected