| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ReftableConfig(Repository
the repository to read settings from. The repository is not
retained by the new configuration, instead its settings are
copied during the constructor. db)Create a configuration honoring the repository's settings. |
| public | ReftableConfig(Config
the source to read settings from. The source is not retained
by the new configuration, instead its settings are copied
during the constructor. cfg)Create a configuration honoring settings in a
|
| public | ReftableConfig(ReftableConfig
the source configuration to copy from. cfg)Copy an existing configuration to a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | fromConfig(Config
configuration to read properties from. rc)Update properties by setting fields from the configuration. |
| public int | Returns: desired output block size for log entries, in bytes. If 0 the writer will default to2 * getRefBlockSize().Get desired output block size for log entries, in bytes. |
| public int | Returns: maximum depth of the index; 0 for unlimited.Get maximum depth of the index; 0 for unlimited. |
| public int | Returns: desired output block size for references, in bytes.Get desired output block size for references, in bytes. |
| public int | Returns: number of references between binary search markers.Get number of references between binary search markers. |
| public boolean | Returns: true if the writer should align blocks.Whether the writer should align blocks. |
| public boolean | Returns: true if the writer should index object to ref.Whether the writer should index object to ref. |
| public void | setAlignBlocks(boolean
if align)true blocks are written aligned to multiples of
getRefBlockSize(). May increase file size due to NUL
padding bytes added between blocks. Default is true.Whether blocks are written aligned to multiples of
|
| public void | setIndexObjects(boolean
if index)true the reftable may include additional storage to
efficiently map from ObjectId to reference names. By
default, true.Whether the reftable may include additional storage to efficiently map
from |
| public void | setLogBlockSize(int
desired output block size for log entries, in bytes. If 0 will
default to szBytes)2 * getRefBlockSize().Set desired output block size for log entries, in bytes. |
| public void | setMaxIndexLevels(int
maximum number of levels to use in indexes. Lower levels of
the index respect levels)getRefBlockSize(), and the highest
level may exceed that if the number of levels is limited.Set maximum number of levels to use in indexes. |
| public void | setRefBlockSize(int
desired output block size for references, in bytes. szBytes)Set desired output block size for references, in bytes. |
| public void | setRestartInterval(int
number of references between binary search markers. If
interval)interval is 0 (default), the writer will select a
default value based on the block size.Setter for the field |
| alignBlocks | back to summary |
|---|---|
| private boolean alignBlocks | |
| indexObjects | back to summary |
|---|---|
| private boolean indexObjects | |
| logBlockSize | back to summary |
|---|---|
| private int logBlockSize | |
| maxIndexLevels | back to summary |
|---|---|
| private int maxIndexLevels | |
| refBlockSize | back to summary |
|---|---|
| private int refBlockSize | |
| restartInterval | back to summary |
|---|---|
| private int restartInterval | |
| ReftableConfig | back to summary |
|---|---|
| public ReftableConfig() Create a default configuration. | |
| ReftableConfig | back to summary |
|---|---|
| public ReftableConfig(Repository db) Create a configuration honoring the repository's settings.
| |
| ReftableConfig | back to summary |
|---|---|
| public ReftableConfig(Config cfg) Create a configuration honoring settings in a
| |
| ReftableConfig | back to summary |
|---|---|
| public ReftableConfig(ReftableConfig cfg) Copy an existing configuration to a new instance.
| |
| fromConfig | back to summary |
|---|---|
| public void fromConfig(Config rc) Update properties by setting fields from the configuration. If a property's corresponding variable is not defined in the supplied configuration, then it is left unmodified.
| |
| getLogBlockSize | back to summary |
|---|---|
| public int getLogBlockSize() Get desired output block size for log entries, in bytes.
| |
| getMaxIndexLevels | back to summary |
|---|---|
| public int getMaxIndexLevels() Get maximum depth of the index; 0 for unlimited.
| |
| getRefBlockSize | back to summary |
|---|---|
| public int getRefBlockSize() Get desired output block size for references, in bytes.
| |
| getRestartInterval | back to summary |
|---|---|
| public int getRestartInterval() Get number of references between binary search markers.
| |
| isAlignBlocks | back to summary |
|---|---|
| public boolean isAlignBlocks() Whether the writer should align blocks.
| |
| isIndexObjects | back to summary |
|---|---|
| public boolean isIndexObjects() Whether the writer should index object to ref.
| |
| setAlignBlocks | back to summary |
|---|---|
| public void setAlignBlocks(boolean align) Whether blocks are written aligned to multiples of
| |
| setIndexObjects | back to summary |
|---|---|
| public void setIndexObjects(boolean index) Whether the reftable may include additional storage to efficiently map
from
| |
| setLogBlockSize | back to summary |
|---|---|
| public void setLogBlockSize(int szBytes) Set desired output block size for log entries, in bytes.
| |
| setMaxIndexLevels | back to summary |
|---|---|
| public void setMaxIndexLevels(int levels) Set maximum number of levels to use in indexes.
| |
| setRefBlockSize | back to summary |
|---|---|
| public void setRefBlockSize(int szBytes) Set desired output block size for references, in bytes.
| |
| setRestartInterval | back to summary |
|---|---|
| public void setRestartInterval(int interval) Setter for the field
| |