public final class VectoredIOContext extends Object
| Constructor and Description |
|---|
VectoredIOContext()
Default no arg constructor.
|
| Modifier and Type | Method and Description |
|---|---|
VectoredIOContext |
build()
Make immutable.
|
int |
getMaxReadSizeForVectorReads()
The largest size that we should group ranges.
|
int |
getMinSeekForVectorReads()
What is the threshold at which a seek() to a new location
is initiated, rather than merging ranges?
|
int |
getVectoredActiveRangeReads()
Maximum number of active range read operation a single
input stream can have.
|
VectoredIOContext |
setMaxReadSizeForVectoredReads(int maxSize)
What is the largest size that we should group ranges
together during vectored read operation?
|
VectoredIOContext |
setMinSeekForVectoredReads(int minSeek)
What is the threshold at which a seek() to a new location
is initiated, rather than merging ranges?
Set to zero to disable range merging entirely.
|
VectoredIOContext |
setVectoredActiveRangeReads(int activeReads)
Maximum number of active range read operation a single
input stream can have.
|
String |
toString() |
public VectoredIOContext build()
public VectoredIOContext setMinSeekForVectoredReads(int minSeek)
minSeek - minimum amount of data to skip.public int getMinSeekForVectorReads()
public VectoredIOContext setMaxReadSizeForVectoredReads(int maxSize)
maxSize - maximum sizepublic int getMaxReadSizeForVectorReads()
public int getVectoredActiveRangeReads()
public VectoredIOContext setVectoredActiveRangeReads(int activeReads)
activeReads - number of extra threads for reading, or zero.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.