public abstract class ProfileIterator extends Object implements Iterator<Object>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isAdmin |
protected QueryProfileStoreContext |
profileStoreContext |
protected String |
queryingUsername |
| Modifier | Constructor and Description |
|---|---|
protected |
ProfileIterator(ExecutorFragmentContext context,
int maxRecords) |
| Modifier and Type | Method and Description |
|---|---|
protected 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, next, removeprotected final QueryProfileStoreContext profileStoreContext
protected final String queryingUsername
protected final boolean isAdmin
protected ProfileIterator(ExecutorFragmentContext context, int maxRecords)
protected Iterator<Map.Entry<String,UserBitShared.QueryProfile>> getAuthorizedProfiles(String username, boolean isAdministrator)
protected long computeDuration(long startTime,
long endTime)
protected abstract Iterator<Map.Entry<String,UserBitShared.QueryProfile>> getProfiles(int skip, int take)
skip - number of profiles to skiptake - number of profiles to returnCopyright © 2021 The Apache Software Foundation. All rights reserved.