public class DfsReaderOptions extends Object
Modifier and Type | Field and Description |
---|---|
static int |
KiB
1024 (number of bytes in one kibibyte/kilobyte)
|
static int |
MiB
1024
KiB (number of bytes in one mebibyte/megabyte) |
Constructor and Description |
---|
DfsReaderOptions()
Create a default reader configuration.
|
Modifier and Type | Method and Description |
---|---|
DfsReaderOptions |
fromConfig(Config rc)
Update properties by setting fields from the configuration.
|
int |
getDeltaBaseCacheLimit() |
int |
getStreamFileThreshold() |
DfsReaderOptions |
setDeltaBaseCacheLimit(int maxBytes)
Set the maximum number of bytes in the DeltaBaseCache.
|
DfsReaderOptions |
setStreamFileThreshold(int newLimit) |
public static final int KiB
public static final int MiB
KiB
(number of bytes in one mebibyte/megabyte)public DfsReaderOptions()
public int getDeltaBaseCacheLimit()
public DfsReaderOptions setDeltaBaseCacheLimit(int maxBytes)
maxBytes
- the new limit.this
public int getStreamFileThreshold()
public DfsReaderOptions setStreamFileThreshold(int newLimit)
newLimit
- new byte limit for objects that must be streamed. Objects
smaller than this size can be obtained as a contiguous byte
array, while objects bigger than this size require using an
ObjectStream
.this
public DfsReaderOptions fromConfig(Config rc)
If a property is not defined in the configuration, then it is left unmodified.
rc
- configuration to read properties from.this
Copyright © 2013. All Rights Reserved.