Package org.elasticsearch.index.translog
Class TranslogConfig
- java.lang.Object
-
- org.elasticsearch.index.translog.TranslogConfig
-
public final class TranslogConfig extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ByteSizeValue
DEFAULT_BUFFER_SIZE
-
Constructor Summary
Constructors Constructor Description TranslogConfig(ShardId shardId, java.nio.file.Path translogPath, IndexSettings indexSettings, BigArrays bigArrays)
Creates a new TranslogConfig instance
-
Method Summary
Modifier and Type Method Description BigArrays
getBigArrays()
Returns a BigArrays instance for this engineByteSizeValue
getBufferSize()
The translog buffer size.IndexSettings
getIndexSettings()
Returns the index indexSettingsShardId
getShardId()
Returns the shard ID this config is created forjava.nio.file.Path
getTranslogPath()
Returns the translog path for this engine
-
-
-
Field Detail
-
DEFAULT_BUFFER_SIZE
public static final ByteSizeValue DEFAULT_BUFFER_SIZE
-
-
Constructor Detail
-
TranslogConfig
public TranslogConfig(ShardId shardId, java.nio.file.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 Detail
-
getIndexSettings
public IndexSettings getIndexSettings()
Returns the index indexSettings
-
getShardId
public ShardId getShardId()
Returns the shard ID this config is created for
-
getBigArrays
public BigArrays getBigArrays()
Returns a BigArrays instance for this engine
-
getTranslogPath
public java.nio.file.Path getTranslogPath()
Returns the translog path for this engine
-
getBufferSize
public ByteSizeValue getBufferSize()
The translog buffer size. Default is8kb
-
-