public class IndexIterator extends Object implements Iterator<IndexEntry>
| Constructor and Description |
|---|
IndexIterator(org.joda.time.DateTime startTime,
org.joda.time.DateTime endTime,
IndexBucket bucket,
MetricsDAO dao,
MetricsConfiguration configuration) |
public IndexIterator(org.joda.time.DateTime startTime,
org.joda.time.DateTime endTime,
IndexBucket bucket,
MetricsDAO dao,
MetricsConfiguration configuration)
startTime - The start time inclusive of the date range to queryendTime - The end time exlusive of the date range to querybucket - Either raw, 1 hour, or 6 hourdao - Used for querying the indexconfiguration - The metrics configuration which provides the total number of partitions and page sizepublic boolean hasNext()
hasNext in interface Iterator<IndexEntry>public IndexEntry next()
next in interface Iterator<IndexEntry>public void remove()
remove in interface Iterator<IndexEntry>Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.