|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.storage.dfs.DfsReaderOptions
public class DfsReaderOptions
Options controlling how objects are read from a DHT stored repository.
| Field Summary | |
|---|---|
static int |
KiB
1024 (number of bytes in one kibibyte/kilobyte) |
static int |
MiB
1024 KiB (number of bytes in one mebibyte/megabyte) |
| Constructor Summary | |
|---|---|
DfsReaderOptions()
Create a default reader configuration. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int KiB
public static final int MiB
KiB (number of bytes in one mebibyte/megabyte)
| Constructor Detail |
|---|
public DfsReaderOptions()
| Method Detail |
|---|
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 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||