Class PojoRoutingIndexingDependencyConfigurationContextImpl<T>
java.lang.Object
org.hibernate.search.mapper.pojo.model.dependency.impl.AbstractPojoBridgedElementDependencyContext
org.hibernate.search.mapper.pojo.model.dependency.impl.PojoRoutingIndexingDependencyConfigurationContextImpl<T>
- All Implemented Interfaces:
PojoRoutingIndexingDependencyConfigurationContext
public class PojoRoutingIndexingDependencyConfigurationContextImpl<T>
extends AbstractPojoBridgedElementDependencyContext
implements PojoRoutingIndexingDependencyConfigurationContext
-
Constructor Summary
ConstructorsConstructorDescriptionPojoRoutingIndexingDependencyConfigurationContextImpl(PojoBootstrapIntrospector introspector, ContainerExtractorBinder containerExtractorBinder, PojoTypeAdditionalMetadataProvider typeAdditionalMetadataProvider, PojoRawTypeModel<T> typeModel) -
Method Summary
Modifier and TypeMethodDescriptionvoidcontributeDependencies(PojoIndexingDependencyCollectorTypeNode<T> dependencyCollector) booleanuse(PojoModelPathValueNode pathFromBridgedTypeToUsedValue) Declare that the given path is read by the bridge at indexing time to route the indexed document.Methods inherited from class org.hibernate.search.mapper.pojo.model.dependency.impl.AbstractPojoBridgedElementDependencyContext
isUseRootOnly, useRootOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.mapper.pojo.model.dependency.PojoRoutingIndexingDependencyConfigurationContext
use, useRootOnly
-
Constructor Details
-
PojoRoutingIndexingDependencyConfigurationContextImpl
public PojoRoutingIndexingDependencyConfigurationContextImpl(PojoBootstrapIntrospector introspector, ContainerExtractorBinder containerExtractorBinder, PojoTypeAdditionalMetadataProvider typeAdditionalMetadataProvider, PojoRawTypeModel<T> typeModel)
-
-
Method Details
-
hasNonRootDependency
public boolean hasNonRootDependency()- Specified by:
hasNonRootDependencyin classAbstractPojoBridgedElementDependencyContext
-
use
public PojoRoutingIndexingDependencyConfigurationContext use(PojoModelPathValueNode pathFromBridgedTypeToUsedValue) Description copied from interface:PojoRoutingIndexingDependencyConfigurationContextDeclare that the given path is read by the bridge at indexing time to route the indexed document.Every component of this path will be considered as a dependency, so it is not necessary to call this method for every subpath. In other words, if the path
"myProperty.someOtherProperty"is declared as used, Hibernate Search will automatically assume that"myProperty"is also used.- Specified by:
usein interfacePojoRoutingIndexingDependencyConfigurationContext- Parameters:
pathFromBridgedTypeToUsedValue- The path from the indexed entity type to the value used by the bridge.- Returns:
this, for method chaining.
-
contributeDependencies
-