Package org.apache.drill.exec.store.sys
Class ProfileIterator
java.lang.Object
org.apache.drill.exec.store.sys.ProfileIterator
- Direct Known Subclasses:
ProfileInfoIterator
,ProfileJsonIterator
Base class for Profile Iterators
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final QueryProfileStoreContext
protected final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProfileIterator
(ExecutorFragmentContext context, int maxRecords) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
computeDuration
(long startTime, long endTime) protected Iterator<Map.Entry<String,
UserBitShared.QueryProfile>> getAuthorizedProfiles
(String username, boolean isAdministrator) protected abstract Iterator<Map.Entry<String,
UserBitShared.QueryProfile>> getProfiles
(int skip, int take) Returns profiles based of given range.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Field Details
-
profileStoreContext
-
queryingUsername
-
isAdmin
protected final boolean isAdmin
-
-
Constructor Details
-
ProfileIterator
-
-
Method Details
-
getAuthorizedProfiles
protected Iterator<Map.Entry<String,UserBitShared.QueryProfile>> getAuthorizedProfiles(String username, boolean isAdministrator) -
computeDuration
protected long computeDuration(long startTime, long endTime) -
getProfiles
protected abstract Iterator<Map.Entry<String,UserBitShared.QueryProfile>> getProfiles(int skip, int take) Returns profiles based of given range.- Parameters:
skip
- number of profiles to skiptake
- number of profiles to return- Returns:
- profiles iterator
-