Package org.opensearch.index.engine
package org.opensearch.index.engine
Core classes responsible for handling all indexing engine operations
-
ClassDescriptionAn
IndexDeletionPolicy
that coordinates between Lucene's commits and the retention of translog generation files, making sure that all translog files that are needed to recover from the Lucene commit are not deleted.a class the returns dynamic information with respect to the last commit point of this shardException thrown if a document is missingException thrown if a document source is missingBase OpenSearch Engine classDelete operationThe delete resultEvent listener for the engineGet operationThe Get resultIndex operationIndex resultA throttling class that can be activated, causing theacquireThrottle
method to block on a lock when throttling is enablednoop operationA Lock implementation that always allows the lock to be acquiredA noop resultBase operation classOrigin of the operationtype of operation (index, delete), subclasses use static typesBase class for index and delete operation results Holds result meta data (e.g.Type of the resultThe engine searcherScope of the searcherSupplier for the searcherThe runner for translog recoveryCalled for each new opened engine reader to warm new segmentsHolds all the configuration that is used to create anEngine
.Builder for EngineConfig classA supplier supplies tombstone documents which will be used in soft-update methods.A factory to create an EngineConfig based on custom plugin overridesAn exception indicating that anEngine
creation failed.Exception if there are any errors in the engineSimple Engine FactoryException thrown if there is an error on flushThe default internal engine (can be overridden by plugins)The deletion strategyThe indexing strategyFactory for creating an in InternalEngine instanceInterface that is aware of a component lifecycle.Exception indicating that not all requested operations fromLuceneChangesSnapshot
are available.NoOpEngine is an engine implementation that does nothing but the bare minimum required in order to have an engine.This is anEngine
implementation intended for replica shards when Segment Replication is enabled.Engine Factory implementation used with Segment Replication that wires up replica shards with an $NRTReplicationEngine
and primary with an $InternalEngine
This is an extension ofOpenSearchReaderManager
for use withNRTReplicationEngine
.A basic read-only engine that allows switching a shard to be true read-only temporarily or permanently.Exception thrown if there is a problem during recoveryException thrown if refresh failsInformation about the safe commit, for making decisions about recoveries.A segment in the engineTracker for segment statsException thrown if snapshot fails the engineInternal class that mocks a single doc read from the transaction log as a leaf reader.Exception thrown if there is a version conflict