Class PrefetchOptions
java.lang.Object
org.apache.hadoop.fs.s3a.prefetch.PrefetchOptions
Options for the prefetch stream which are built up in
PrefetchingInputStreamFactory
and passed down.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of prefetch queue (in number of blocks).intGets the size in bytes of a single prefetch block.
-
Constructor Details
-
PrefetchOptions
public PrefetchOptions(int prefetchBlockSize, int prefetchBlockCount) Constructor.- Parameters:
prefetchBlockSize- the size (in number of bytes) of each prefetched block.prefetchBlockCount- maximum number of prefetched blocks.
-
-
Method Details
-
getPrefetchBlockSize
public int getPrefetchBlockSize()Gets the size in bytes of a single prefetch block.- Returns:
- the size in bytes of a single prefetch block.
-
getPrefetchBlockCount
public int getPrefetchBlockCount()Gets the size of prefetch queue (in number of blocks).- Returns:
- the size of prefetch queue (in number of blocks).
-