Class LuceneChangesSnapshot

java.lang.Object
org.elasticsearch.index.engine.SearchBasedChangesSnapshot
org.elasticsearch.index.engine.LuceneChangesSnapshot
All Implemented Interfaces:
Closeable, AutoCloseable, Translog.Snapshot

public final class LuceneChangesSnapshot extends SearchBasedChangesSnapshot
A Translog.Snapshot from changes in a Lucene index
  • Constructor Details

    • LuceneChangesSnapshot

      public LuceneChangesSnapshot(MapperService mapperService, Engine.Searcher engineSearcher, int searchBatchSize, long fromSeqNo, long toSeqNo, boolean requiredFullRange, boolean singleConsumer, boolean accessStats, IndexVersion indexVersionCreated) throws IOException
      Creates a new "translog" snapshot from Lucene for reading operations whose seq# in the specified range.
      Parameters:
      mapperService - the mapper service for this index
      engineSearcher - the internal engine searcher which will be taken over if the snapshot is opened successfully
      searchBatchSize - the number of documents should be returned by each search
      fromSeqNo - the min requesting seq# - inclusive
      toSeqNo - the maximum requesting seq# - inclusive
      requiredFullRange - if true, the snapshot will strictly check for the existence of operations between fromSeqNo and toSeqNo
      singleConsumer - true if the snapshot is accessed by a single thread that creates the snapshot
      accessStats - true if the stats of the snapshot can be accessed via totalOperations()
      indexVersionCreated - the version on which this index was created
      Throws:
      IOException
  • Method Details