Class BlockOperations
java.lang.Object
org.apache.hadoop.fs.impl.prefetch.BlockOperations
Block level operations performed on a file.
This class is meant to be used by
BlockManager.
It is separated out in its own file due to its size.
This class is used for debugging/logging. Calls to this class
can be safely removed without affecting the overall operation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumOperation kind.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToCache(int blockNumber) voidanalyze(StringBuilder sb) close()static BlockOperationsfromSummary(String summary) getCached(int blockNumber) voidgetPrefetched(int blockNumber) getRead(int blockNumber) getSummary(boolean showDebugInfo) prefetch(int blockNumber) release(int blockNumber) requestCaching(int blockNumber) requestPrefetch(int blockNumber) voidsetDebug(boolean state)
-
Constructor Details
-
BlockOperations
public BlockOperations()
-
-
Method Details
-
setDebug
public void setDebug(boolean state) -
getPrefetched
-
getCached
-
getRead
-
release
-
requestPrefetch
-
prefetch
-
cancelPrefetches
-
close
-
requestCaching
-
addToCache
-
end
-
getSummary
-
getDurationInfo
-
analyze
-
fromSummary
-