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
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final QueryProfileStoreContextprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProfileIterator(ExecutorFragmentContext context, int maxRecords) -
Method Summary
Modifier and TypeMethodDescriptionprotected longcomputeDuration(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, waitMethods 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
-