Class TranslogConfig

java.lang.Object
org.elasticsearch.index.translog.TranslogConfig

public final class TranslogConfig extends Object
  • Field Details

    • DEFAULT_BUFFER_SIZE

      public static final ByteSizeValue DEFAULT_BUFFER_SIZE
    • EMPTY_TRANSLOG_BUFFER_SIZE

      public static final ByteSizeValue 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 to
      translogPath - the path to use for the transaction log files
      indexSettings - the index settings used to set internal variables
      bigArrays - a bigArrays instance used for temporarily allocating write operations
  • Method Details

    • 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 Path getTranslogPath()
      Returns the translog path for this engine
    • getBufferSize

      public ByteSizeValue getBufferSize()
      The translog buffer size. Default is 8kb