()
| 1784 | } |
| 1785 | |
| 1786 | @Override |
| 1787 | public String toString() { |
| 1788 | final StringBuilder buf = new StringBuilder(); |
| 1789 | buf.append("TsdbQuery(start_time=") |
| 1790 | .append(getStartTime()) |
| 1791 | .append(", end_time=") |
| 1792 | .append(getEndTime()); |
| 1793 | if (tsuids != null && !tsuids.isEmpty()) { |
| 1794 | buf.append(", tsuids="); |
| 1795 | for (final String tsuid : tsuids) { |
| 1796 | buf.append(tsuid).append(","); |
| 1797 | } |
| 1798 | } else { |
| 1799 | buf.append(", metric=").append(Arrays.toString(metric)); |
| 1800 | buf.append(", filters=["); |
| 1801 | for (final Iterator<TagVFilter> it = filters.iterator(); it.hasNext(); ) { |
| 1802 | buf.append(it.next()); |
| 1803 | if (it.hasNext()) { |
| 1804 | buf.append(','); |
| 1805 | } |
| 1806 | } |
| 1807 | buf.append("], rate=").append(rate) |
| 1808 | .append(", aggregator=").append(aggregator) |
| 1809 | .append(", group_bys=("); |
| 1810 | if (group_bys != null) { |
| 1811 | for (final byte[] tag_id : group_bys) { |
| 1812 | try { |
| 1813 | buf.append(tsdb.tag_names.getName(tag_id)); |
| 1814 | } catch (NoSuchUniqueId e) { |
| 1815 | buf.append('<').append(e.getMessage()).append('>'); |
| 1816 | } |
| 1817 | buf.append(' ') |
| 1818 | .append(Arrays.toString(tag_id)); |
| 1819 | if (row_key_literals != null) { |
| 1820 | final byte[][] value_ids = row_key_literals.get(tag_id); |
| 1821 | if (value_ids == null) { |
| 1822 | continue; |
| 1823 | } |
| 1824 | buf.append("={"); |
| 1825 | for (final byte[] value_id : value_ids) { |
| 1826 | try { |
| 1827 | if (value_id != null) { |
| 1828 | buf.append(tsdb.tag_values.getName(value_id)); |
| 1829 | } else { |
| 1830 | buf.append("null"); |
| 1831 | } |
| 1832 | } catch (NoSuchUniqueId e) { |
| 1833 | buf.append('<').append(e.getMessage()).append('>'); |
| 1834 | } |
| 1835 | buf.append(' ') |
| 1836 | .append(Arrays.toString(value_id)) |
| 1837 | .append(", "); |
| 1838 | } |
| 1839 | buf.append('}'); |
| 1840 | } |
| 1841 | buf.append(", "); |
| 1842 | } |
| 1843 | } |
no test coverage detected