MPBS - The Java type of the partial build state of the produced mapping.public interface Mapper<MPBS extends MappingPartialBuildState>
| Modifier and Type | Method and Description |
|---|---|
void |
closeOnFailure()
Close any allocated resource.
|
void |
mapIndexedTypes(MappedIndexManagerFactory indexManagerFactory)
Begin the creation of a mapping for all indexed types.
|
MPBS |
prepareBuild()
Partially build the mapping based on the
indexed types
added so far. |
void |
prepareIndexedTypes(Consumer<Optional<String>> backendNameCollector)
Prepare for the mapping of indexed types
and inform the engine of the names of all backends this mapper depends on.
|
void closeOnFailure()
This method is called when an error occurs while starting up Hibernate Search. When this method is called, it is guaranteed to be the last call on the mapper.
void prepareIndexedTypes(Consumer<Optional<String>> backendNameCollector)
Called exactly once just before mapIndexedTypes(MappedIndexManagerFactory).
backendNameCollector - A collector of backend names, Optional.empty() means "the default backend".void mapIndexedTypes(MappedIndexManagerFactory indexManagerFactory)
Called exactly once just after prepareIndexedTypes(Consumer) and before prepareBuild().
indexManagerFactory - A factory for index managers,
supporting all the backends declared in prepareIndexedTypes(Consumer).MPBS prepareBuild() throws MappingAbortedException
indexed types
added so far.
Called exactly once just after mapIndexedTypes(MappedIndexManagerFactory).
MappingAbortedException - When aborting the mapping due to
collected failures.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.