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(IndexManagerBuildingStateProvider indexManagerBuildingStateProvider)
Begin the creation of a mapping for all indexed types.
|
MPBS |
prepareBuild()
Partially build the mapping based on the
indexex 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(IndexManagerBuildingStateProvider).
backendNameCollector - A collector of backend names, Optional.empty() means "the default backend".void mapIndexedTypes(IndexManagerBuildingStateProvider indexManagerBuildingStateProvider)
Called exactly once just after prepareIndexedTypes(Consumer) and before prepareBuild().
indexManagerBuildingStateProvider - A provider of index manager building states,
supporting all the backends declared in prepareIndexedTypes(Consumer).MPBS prepareBuild() throws MappingAbortedException
indexex types
added so far.
Called exactly once just after mapIndexedTypes(IndexManagerBuildingStateProvider).
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.