public class MetricInstrumentedSlicesIterator extends Object implements KeySlicesIterator
MetricInstrumentedStore to measure wall clock
time, method invocation counts, and exceptions thrown by the methods on
RecordIterator instances returned from
MetricInstrumentedStore.getSlice(org.janusgraph.diskstorage.keycolumnvalue.KeySliceQuery, org.janusgraph.diskstorage.keycolumnvalue.StoreTransaction).| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<SliceQuery,RecordIterator<Entry>> |
getEntries()
Returns map of iterators over all entries associated with the current
key that match the column range specified in the queries.
|
boolean |
hasNext() |
StaticBuffer |
next() |
static MetricInstrumentedSlicesIterator |
of(KeySlicesIterator keyIterator,
String... prefix)
If the iterator argument is non-null, then return a new
MetricInstrumentedIterator wrapping it. |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static MetricInstrumentedSlicesIterator of(KeySlicesIterator keyIterator, String... prefix)
MetricInstrumentedIterator wrapping it. Metrics for method calls
on the wrapped instance will be prefixed with the string prefix
which must be non-null. If the iterator argument is null, then return
null.keyIterator - the iterator to wrap with Metrics measurementsprefix - the Metrics name prefix stringkeyIterator or null if
keyIterator is nullpublic boolean hasNext()
hasNext in interface Iterator<StaticBuffer>public StaticBuffer next()
next in interface Iterator<StaticBuffer>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Map<SliceQuery,RecordIterator<Entry>> getEntries()
KeySlicesIterator
Closing any of the returned sub-iterators has no effect on this iterator.
Calling Iterator.next() might close previously returned RecordIterators
depending on the implementation, hence it is important to iterate over
(and close) the RecordIterator before calling Iterator.next() or Iterator.hasNext().
Important! Entries should be sorted inside iterators.
Otherwise VertexJobConverter will not work correctly
getEntries in interface KeySlicesIteratorpublic void remove()
remove in interface Iterator<StaticBuffer>Copyright © 2012–2024. All rights reserved.