Package org.apache.lucene.index
Interface IndexWriter.Event
-
- Enclosing class:
- IndexWriter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface private static interface IndexWriter.Event
Interface for internal atomic events. SeeDocumentsWriter
for details. Events are executed concurrently and no order is guaranteed. Each event should only rely on the serializeability within its process method. All actions that must happen before or after a certain action must be encoded inside theprocess(IndexWriter)
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
process(IndexWriter writer)
Processes the event.
-
-
-
Method Detail
-
process
void process(IndexWriter writer) throws java.io.IOException
Processes the event. This method is called by theIndexWriter
passed as the first argument.- Parameters:
writer
- theIndexWriter
that executes the event.- Throws:
java.io.IOException
- if anIOException
occurs
-
-