MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / tableToBeScanned

Method tableToBeScanned

src/core/TsdbQuery.java:1553–1572  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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() {

Callers 3

getScannerMethod · 0.95

Calls 6

isValidQueryMethod · 0.95
getGroupbyTableMethod · 0.80
getTemporalTableMethod · 0.80
getDefaultIntervalMethod · 0.80
dataTableMethod · 0.80
getRollupIntervalMethod · 0.45

Tested by

no test coverage detected