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
Constructors Constructor Description PojoRoutingIndexingDependencyConfigurationContextImpl(PojoBootstrapIntrospector introspector, ContainerExtractorBinder containerExtractorBinder, PojoTypeAdditionalMetadataProvider typeAdditionalMetadataProvider, PojoRawTypeModel<T> typeModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontributeDependencies(PojoIndexingDependencyCollectorTypeNode<T> dependencyCollector)booleanhasNonRootDependency()PojoRoutingIndexingDependencyConfigurationContextuse(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, useRootOnly
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.mapper.pojo.model.dependency.PojoRoutingIndexingDependencyConfigurationContext
use, useRootOnly
-
-
-
-
Constructor Detail
-
PojoRoutingIndexingDependencyConfigurationContextImpl
public PojoRoutingIndexingDependencyConfigurationContextImpl(PojoBootstrapIntrospector introspector, ContainerExtractorBinder containerExtractorBinder, PojoTypeAdditionalMetadataProvider typeAdditionalMetadataProvider, PojoRawTypeModel<T> typeModel)
-
-
Method Detail
-
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
public void contributeDependencies(PojoIndexingDependencyCollectorTypeNode<T> dependencyCollector)
-
-