Package org.elasticsearch.index.translog
Class TranslogConfig
org.elasticsearch.index.translog.TranslogConfig
public final class TranslogConfig
extends
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTranslogConfig(ShardId shardId, 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 engineMethods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
DEFAULT_BUFFER_SIZE
-
EMPTY_TRANSLOG_BUFFER_SIZE
-
-
Constructor Details
-
TranslogConfig
public TranslogConfig(ShardId shardId, 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
public getTranslogPath()Returns the translog path for this engine -
getBufferSize
The translog buffer size. Default is8kb
-