Class EngineConfigFactory

java.lang.Object
org.opensearch.index.engine.EngineConfigFactory

public class EngineConfigFactory
extends java.lang.Object
A factory to create an EngineConfig based on custom plugin overrides
  • Constructor Summary

    Constructors 
    Constructor Description
    EngineConfigFactory​(IndexSettings idxSettings)
    default ctor primarily used for tests without plugins
    EngineConfigFactory​(PluginsService pluginsService, IndexSettings idxSettings)
    Construct a factory using the plugin service and provided index settings
  • Method Summary

    Modifier and Type Method Description
    EngineConfig newEngineConfig​(ShardId shardId, ThreadPool threadPool, IndexSettings indexSettings, Engine.Warmer warmer, Store store, org.apache.lucene.index.MergePolicy mergePolicy, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.search.similarities.Similarity similarity, CodecService codecService, Engine.EventListener eventListener, org.apache.lucene.search.QueryCache queryCache, org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy, TranslogConfig translogConfig, org.opensearch.common.unit.TimeValue flushMergesAfter, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> externalRefreshListener, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> internalRefreshListener, org.apache.lucene.search.Sort indexSort, CircuitBreakerService circuitBreakerService, java.util.function.LongSupplier globalCheckpointSupplier, java.util.function.Supplier<RetentionLeases> retentionLeasesSupplier, java.util.function.LongSupplier primaryTermSupplier, EngineConfig.TombstoneDocSupplier tombstoneDocSupplier)
    Instantiates a new EngineConfig from the provided custom overrides

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • newEngineConfig

      public EngineConfig newEngineConfig​(ShardId shardId, ThreadPool threadPool, IndexSettings indexSettings, Engine.Warmer warmer, Store store, org.apache.lucene.index.MergePolicy mergePolicy, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.search.similarities.Similarity similarity, CodecService codecService, Engine.EventListener eventListener, org.apache.lucene.search.QueryCache queryCache, org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy, TranslogConfig translogConfig, org.opensearch.common.unit.TimeValue flushMergesAfter, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> externalRefreshListener, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> internalRefreshListener, org.apache.lucene.search.Sort indexSort, CircuitBreakerService circuitBreakerService, java.util.function.LongSupplier globalCheckpointSupplier, java.util.function.Supplier<RetentionLeases> retentionLeasesSupplier, java.util.function.LongSupplier primaryTermSupplier, EngineConfig.TombstoneDocSupplier tombstoneDocSupplier)
      Instantiates a new EngineConfig from the provided custom overrides