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()
Get maximum number of bytes to hold in per-reader DeltaBaseCache. 
 | 
int | 
getStreamFileThreshold()
Get the size threshold beyond which objects must be streamed. 
 | 
int | 
getStreamPackBufferSize()
Get number of bytes to use for buffering when streaming a pack file
 during copying. 
 | 
DfsReaderOptions | 
setDeltaBaseCacheLimit(int maxBytes)
Set the maximum number of bytes in the DeltaBaseCache. 
 | 
DfsReaderOptions | 
setStreamFileThreshold(int newLimit)
Set new byte limit for objects that must be streamed. 
 | 
DfsReaderOptions | 
setStreamPackBufferSize(int bufsz)
Set new buffer size in bytes for buffers used when streaming pack files
 during copying. 
 | 
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.thispublic 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.thispublic int getStreamPackBufferSize()
public DfsReaderOptions setStreamPackBufferSize(int bufsz)
bufsz - new buffer size in bytes for buffers used when streaming pack
            files during copying.thispublic DfsReaderOptions fromConfig(Config rc)
If a property is not defined in the configuration, then it is left unmodified.
rc - configuration to read properties from.thisCopyright © 2020 Eclipse JGit Project. All rights reserved.