Package org.elasticsearch.index.engine
Class Engine.IndexCommitRef
java.lang.Object
org.elasticsearch.index.engine.Engine.IndexCommitRef
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- Engine
public static class Engine.IndexCommitRef
extends java.lang.Object
implements java.io.Closeable
-
Constructor Summary
Constructors Constructor Description IndexCommitRef(org.apache.lucene.index.IndexCommit indexCommit, org.elasticsearch.common.CheckedRunnable<java.io.IOException> onClose)
-
Method Summary
Modifier and Type Method Description void
close()
org.apache.lucene.index.IndexCommit
getIndexCommit()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
IndexCommitRef
public IndexCommitRef(org.apache.lucene.index.IndexCommit indexCommit, org.elasticsearch.common.CheckedRunnable<java.io.IOException> onClose)
-
-
Method Details
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
getIndexCommit
public org.apache.lucene.index.IndexCommit getIndexCommit()
-