MCPcopy
hub / github.com/OpenTSDB/opentsdb / hasNext

Method hasNext

test/storage/MockBase.java:1790–1798  ·  view source on GitHub ↗

@return Returns true if any of the CF iterators have another value

()

Source from the content-addressed store, hash-verified

1788
1789 /** @return Returns true if any of the CF iterators have another value */
1790 private boolean hasNext() {
1791 for (final Iterator<Entry<byte[], ByteMap<TreeMap<Long, byte[]>>>> cursor :
1792 cursors.values()) {
1793 if (cursor.hasNext()) {
1794 return true;
1795 }
1796 }
1797 return false;
1798 }
1799
1800 /** Insanely inefficient and ugly way of advancing the cursors */
1801 private void advance() {

Callers 1

answerMethod · 0.95

Calls 2

valuesMethod · 0.65
hasNextMethod · 0.65

Tested by

no test coverage detected