Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> ExportTable.isReady - alternative to for loop?


Copy link to this message
-
ExportTable.isReady - alternative to for loop?
This is the code I am looking at:

    // TODO look for walogs
    for (Entry<Key,Value> entry : metaScanner) {
      return 500;
    }

    return 0;

FindBugs complains that entry is unused. Does it make sense to replace
that code with:

  return metaScanner.iterator().hasNext() ? 500 : 0;
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB