Class PojoIndexedTypeManager<I,E>
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.impl.AbstractPojoTypeManager<I,E>
org.hibernate.search.mapper.pojo.mapping.impl.PojoIndexedTypeManager<I,E>
- Type Parameters:
I- The identifier type for the mapped entity type.E- The entity type mapped to the index.
- All Implemented Interfaces:
AutoCloseable,ProjectionMappedTypeContext,PojoLoadingTypeContext<E>,PojoMassIndexingIndexedTypeContext<E>,PojoSchemaManagementIndexedTypeContext,PojoScopeIndexedTypeContext<I,,E> PojoSearchLoadingIndexedTypeContext<E>,PojoWorkIndexedTypeContext<I,,E> PojoWorkTypeContext<I,,E> ToStringTreeAppendable
public class PojoIndexedTypeManager<I,E>
extends AbstractPojoTypeManager<I,E>
implements PojoWorkIndexedTypeContext<I,E>, PojoScopeIndexedTypeContext<I,E>, PojoMassIndexingIndexedTypeContext<E>, ProjectionMappedTypeContext
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.hibernate.search.mapper.pojo.mapping.impl.AbstractPojoTypeManager
caster, entityName, identifierMapping, reindexingResolver, secondaryEntityName, typeIdentifier -
Constructor Summary
ConstructorsConstructorDescriptionPojoIndexedTypeManager(PojoIndexedTypeManager.Builder<E> builder, IdentifierMappingImplementor<I, E> identifierMapping) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(MappedIndexScopeBuilder<?, ?> builder) voidappendTo(ToStringTreeAppender appender) Appends information aboutthisto the givenappender.voidclose()createIndexer(PojoWorkSessionContext sessionContext) createIndexingPlan(PojoWorkSessionContext sessionContext, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy) <R,E2> MappedIndexScopeBuilder<R, E2> createScopeBuilder(BackendMappingContext mappingContext) createWorkspace(BackendMappingContext mappingContext, Set<String> tenantIds) DocumentRouter<? super E>router()toDocumentContributor(PojoWorkSessionContext sessionContext, PojoIndexingProcessorRootContext processorContext, I identifier, Supplier<E> entitySupplier) Methods inherited from class org.hibernate.search.mapper.pojo.mapping.impl.AbstractPojoTypeManager
ascendingSuperTypes, asContained, entityName, equals, hashCode, hasNonIndexedConcreteSubtypes, identifierMapping, isSingleConcreteTypeInEntityHierarchy, javaClass, loadingAvailable, massLoadingStrategy, massLoadingStrategyOptional, name, pathOrdinals, reindexingResolver, resolveEntitiesToReindex, secondaryEntityName, selectionLoadingStrategy, selectionLoadingStrategyOptional, toDocumentIdentifier, toEntity, toEntitySupplier, toString, typeIdentifierMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.mapper.pojo.loading.spi.PojoLoadingTypeContext
ascendingSuperTypes, entityName, hasNonIndexedConcreteSubtypes, isSingleConcreteTypeInEntityHierarchy, massLoadingStrategy, massLoadingStrategyOptional, secondaryEntityName, selectionLoadingStrategy, selectionLoadingStrategyOptional, typeIdentifierMethods inherited from interface org.hibernate.search.mapper.pojo.massindexing.impl.PojoMassIndexingIndexedTypeContext
identifierMapping, toEntitySupplierMethods inherited from interface org.hibernate.search.mapper.pojo.schema.management.impl.PojoSchemaManagementIndexedTypeContext
typeIdentifierMethods inherited from interface org.hibernate.search.mapper.pojo.search.loading.impl.PojoSearchLoadingIndexedTypeContext
identifierMappingMethods inherited from interface org.hibernate.search.mapper.pojo.work.impl.PojoWorkTypeContext
asContained, identifierMapping, pathOrdinals, reindexingResolver, resolveEntitiesToReindex, toDocumentIdentifier, toEntity, toEntitySupplierMethods inherited from interface org.hibernate.search.engine.search.projection.spi.ProjectionMappedTypeContext
javaClass, loadingAvailable, nameMethods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
toStringTree
-
Constructor Details
-
PojoIndexedTypeManager
public PojoIndexedTypeManager(PojoIndexedTypeManager.Builder<E> builder, IdentifierMappingImplementor<I, E> identifierMapping)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractPojoTypeManager<I,E>
-
appendTo
Description copied from interface:ToStringTreeAppendableAppends information aboutthisto the givenappender.WARNING: This generally shouldn't be called directly, as
ToStringTreeAppenderwill automatically call this method forToStringTreeAppendablevalues passed toToStringTreeAppender.attribute(String, Object)/ToStringTreeAppender.value(Object).Implementations should assume that calls to
ToStringTreeAppender.startObject()/ToStringTreeAppender.endObject()forthisare handled by the caller.- Specified by:
appendToin interfaceToStringTreeAppendable- Overrides:
appendToin classAbstractPojoTypeManager<I,E> - Parameters:
appender- AToStringTreeAppender.
-
asIndexed
- Specified by:
asIndexedin interfacePojoWorkTypeContext<I,E> - Overrides:
asIndexedin classAbstractPojoTypeManager<I,E>
-
router
- Specified by:
routerin interfacePojoWorkIndexedTypeContext<I,E>
-
toDocumentContributor
public PojoDocumentContributor<E> toDocumentContributor(PojoWorkSessionContext sessionContext, PojoIndexingProcessorRootContext processorContext, I identifier, Supplier<E> entitySupplier) - Specified by:
toDocumentContributorin interfacePojoWorkIndexedTypeContext<I,E>
-
dirtySelfFilter
- Specified by:
dirtySelfFilterin interfacePojoWorkIndexedTypeContext<I,E>
-
schemaManager
- Specified by:
schemaManagerin interfacePojoSchemaManagementIndexedTypeContext
-
createIndexer
- Specified by:
createIndexerin interfacePojoWorkIndexedTypeContext<I,E>
-
createWorkspace
- Specified by:
createWorkspacein interfacePojoWorkIndexedTypeContext<I,E>
-
createIndexingPlan
public IndexIndexingPlan createIndexingPlan(PojoWorkSessionContext sessionContext, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy) - Specified by:
createIndexingPlanin interfacePojoWorkIndexedTypeContext<I,E>
-
createScopeBuilder
public <R,E2> MappedIndexScopeBuilder<R,E2> createScopeBuilder(BackendMappingContext mappingContext) - Specified by:
createScopeBuilderin interfacePojoScopeIndexedTypeContext<I,E>
-
addTo
- Specified by:
addToin interfacePojoScopeIndexedTypeContext<I,E>
-