Package org.apache.hadoop.hbase.io.hfile
Class PrefetchExecutor
java.lang.Object
org.apache.hadoop.hbase.io.hfile.PrefetchExecutor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerstatic final StringWait time in miliseconds before executing prefetchstatic final Stringstatic final floatprivate static intDelay before beginning prefetchprivate static floatVariation in prefetch delay times, to mitigate stampedesprivate static final ScheduledExecutorServiceExecutor pool shared among all HFiles for block prefetchFutures for tracking block prefetch activityprivate static final PatternRunnables for resetting the prefetch activity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcancel(org.apache.hadoop.fs.Path path) static voidcomplete(org.apache.hadoop.fs.Path path) (package private) static ScheduledExecutorServicestatic intstatic booleanisCompleted(org.apache.hadoop.fs.Path path) (package private) static booleanstatic voidloadConfiguration(org.apache.hadoop.conf.Configuration conf) static void
-
Field Details
-
LOG
-
PREFETCH_DELAY
Wait time in miliseconds before executing prefetch- See Also:
-
PREFETCH_DELAY_VARIATION
- See Also:
-
PREFETCH_DELAY_VARIATION_DEFAULT_VALUE
- See Also:
-
prefetchFutures
Futures for tracking block prefetch activity -
prefetchRunnable
Runnables for resetting the prefetch activity -
prefetchExecutorPool
Executor pool shared among all HFiles for block prefetch -
prefetchDelayMillis
Delay before beginning prefetch -
prefetchDelayVariation
Variation in prefetch delay times, to mitigate stampedes -
prefetchPathExclude
-
-
Constructor Details
-
PrefetchExecutor
private PrefetchExecutor()
-
-
Method Details
-
request
-
complete
-
cancel
-
isCompleted
-
getExecutorPool
-
getPrefetchFutures
-
getPrefetchRunnable
-
isPrefetchStarted
-
getPrefetchDelay
-
loadConfiguration
-