Package org.elasticsearch.index.translog
Class TranslogConfig
java.lang.Object
org.elasticsearch.index.translog.TranslogConfig
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTranslogConfig(ShardId shardId, Path translogPath, IndexSettings indexSettings, BigArrays bigArrays)
Creates a new TranslogConfig instance -
Method Summary
Modifier and TypeMethodDescriptionReturns a BigArrays instance for this engineThe translog buffer size.Returns the index indexSettingsReturns the shard ID this config is created forReturns the translog path for this engine
-
Field Details
-
DEFAULT_BUFFER_SIZE
-
EMPTY_TRANSLOG_BUFFER_SIZE
-
-
Constructor Details
-
TranslogConfig
public TranslogConfig(ShardId shardId, Path translogPath, IndexSettings indexSettings, BigArrays bigArrays)Creates a new TranslogConfig instance- Parameters:
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 operations
-
-
Method Details
-
getIndexSettings
Returns the index indexSettings -
getShardId
Returns the shard ID this config is created for -
getBigArrays
Returns a BigArrays instance for this engine -
getTranslogPath
Returns the translog path for this engine -
getBufferSize
The translog buffer size. Default is8kb
-