public final class TranslogConfig
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static ByteSizeValue |
DEFAULT_BUFFER_SIZE |
Constructor | Description |
---|---|
TranslogConfig(ShardId shardId,
java.nio.file.Path translogPath,
IndexSettings indexSettings,
BigArrays bigArrays) |
Creates a new TranslogConfig instance
|
Modifier and Type | Method | Description |
---|---|---|
BigArrays |
getBigArrays() |
Returns a BigArrays instance for this engine
|
ByteSizeValue |
getBufferSize() |
The translog buffer size.
|
IndexSettings |
getIndexSettings() |
Returns the index indexSettings
|
ShardId |
getShardId() |
Returns the shard ID this config is created for
|
java.nio.file.Path |
getTranslogPath() |
Returns the translog path for this engine
|
public static final ByteSizeValue DEFAULT_BUFFER_SIZE
public TranslogConfig(ShardId shardId, java.nio.file.Path translogPath, IndexSettings indexSettings, BigArrays bigArrays)
shardId
- the shard ID this translog belongs totranslogPath
- the path to use for the transaction log filesindexSettings
- the index settings used to set internal variablesbigArrays
- a bigArrays instance used for temporarily allocating write operationspublic IndexSettings getIndexSettings()
public ShardId getShardId()
public BigArrays getBigArrays()
public java.nio.file.Path getTranslogPath()
public ByteSizeValue getBufferSize()