java.lang.Object
org.elasticsearch.index.engine.Engine
org.elasticsearch.index.engine.ReadOnlyEngine
org.elasticsearch.index.engine.NoOpEngine
- All Implemented Interfaces:
- Closeable,- AutoCloseable
NoOpEngine is an engine implementation that does nothing but the bare minimum
 required in order to have an engine. All attempts to do something (search,
 index, get), throw 
UnsupportedOperationException. However, NoOpEngine
 allows to trim any existing translog files through the usage of the
 {trimUnreferencedTranslogFiles()} method.- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.index.engine.EngineEngine.Delete, Engine.DeleteResult, Engine.EventListener, Engine.Get, Engine.GetResult, Engine.Index, Engine.IndexCommitRef, Engine.IndexResult, Engine.IndexThrottle, Engine.NoOp, Engine.NoOpLock, Engine.NoOpResult, Engine.Operation, Engine.Result, Engine.Searcher, Engine.SearcherScope, Engine.SearcherSupplier, Engine.TranslogRecoveryRunner, Engine.Warmer
- 
Field SummaryFields inherited from class org.elasticsearch.index.engine.ReadOnlyEngineFIELD_RANGE_SEARCH_SOURCE, translogStatsFields inherited from class org.elasticsearch.index.engine.EngineCAN_MATCH_SEARCH_SOURCE, DOC_STATS_SOURCE, engineConfig, ES_VERSION, eventListener, failedEngine, failEngineLock, FORCE_MERGE_UUID_KEY, HISTORY_UUID_KEY, isClosed, lastWriteNanos, logger, MAX_UNSAFE_AUTO_ID_TIMESTAMP_COMMIT_ID, MIN_RETAINED_SEQNO, readLock, rwl, SEARCH_SOURCE, shardId, store, SYNC_COMMIT_ID, writeLock
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondocStats()Returns theDocsStatsfor this engineprotected org.apache.lucene.index.DirectoryReaderopen(org.apache.lucene.index.IndexCommit commit) segmentsStats(boolean includeSegmentFileSizes, boolean includeUnloadedSegments) Global stats on segments.voidThis implementation will trim existing translog files using aTranslogDeletionPolicythat retains nothing but the last translog generation from safe commit.Methods inherited from class org.elasticsearch.index.engine.ReadOnlyEngineacquireHistoryRetentionLock, acquireLastIndexCommit, acquireSafeIndexCommit, acquireSearcherSupplier, activateThrottling, advanceMaxSeqNoOfUpdatesOrDeletes, assertMaxSeqNoEqualsToGlobalCheckpoint, closeNoLock, completionStats, countChanges, deactivateThrottling, delete, ensureMaxSeqNoEqualsToGlobalCheckpoint, ensureTranslogSynced, fillSeqNoGaps, flush, forceMerge, get, getCommitId, getHistoryUUID, getIndexBufferRAMBytesUsed, getIndexThrottleTimeInMillis, getLastCommittedSegmentInfos, getLastSyncedGlobalCheckpoint, getMaxSeqNo, getMaxSeqNoOfUpdatesOrDeletes, getMinRetainedSeqNo, getPersistedLocalCheckpoint, getProcessedLocalCheckpoint, getRawFieldRange, getReferenceManager, getSafeCommitInfo, getSeqNoStats, getTranslogLastWriteLocation, getTranslogStats, getWritingBytes, hasCompleteOperationHistory, index, isThrottled, isTranslogSyncNeeded, maybePruneDeletes, maybeRefresh, newChangesSnapshot, noOp, openDirectory, recoverFromTranslog, refresh, refreshNeeded, restoreLocalHistoryFromTranslog, rollTranslogGeneration, segments, shouldPeriodicallyFlush, shouldRollTranslogGeneration, skipTranslogRecovery, syncTranslog, trimOperationsFromTranslog, updateMaxUnsafeAutoIdTimestamp, verifyEngineBeforeIndexClosing, wrapReader, writeIndexingBufferMethods inherited from class org.elasticsearch.index.engine.EngineacquireIndexCommitForSnapshot, acquireSearcher, acquireSearcher, acquireSearcher, acquireSearcherSupplier, close, commitStats, config, docsStats, ensureOpen, ensureOpen, failEngine, fillSegmentStats, flush, flushAndClose, getEngineConfig, getFromSearcher, getLastWriteNanos, getMaxSeenAutoIdTimestamp, getMergeStats, maybeFailEngine, onSettingsChanged, writerSegmentStats
- 
Constructor Details- 
NoOpEngine
 
- 
- 
Method Details- 
openprotected org.apache.lucene.index.DirectoryReader open(org.apache.lucene.index.IndexCommit commit) throws IOException - Overrides:
- openin class- ReadOnlyEngine
- Throws:
- IOException
 
- 
segmentsStatspublic SegmentsStats segmentsStats(boolean includeSegmentFileSizes, boolean includeUnloadedSegments) Description copied from class:EngineGlobal stats on segments.- Overrides:
- segmentsStatsin class- Engine
 
- 
docStatsDescription copied from class:EngineReturns theDocsStatsfor this engine
- 
trimUnreferencedTranslogFilespublic void trimUnreferencedTranslogFiles()This implementation will trim existing translog files using aTranslogDeletionPolicythat retains nothing but the last translog generation from safe commit.- Overrides:
- trimUnreferencedTranslogFilesin class- ReadOnlyEngine
 
 
-