Class NoOpEngine

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public final class NoOpEngine
    extends ReadOnlyEngine
    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.
    • Constructor Detail

    • Method Detail

      • open

        protected org.apache.lucene.index.DirectoryReader open​(org.apache.lucene.index.IndexCommit commit)
        open in class ReadOnlyEngine
      • segmentsStats

        public SegmentsStats segmentsStats​(boolean includeSegmentFileSizes,
                                           boolean includeUnloadedSegments)
        Description copied from class: Engine
        Global stats on segments.
        segmentsStats in class Engine