public class DefaultRoutingResolver extends Object implements RoutingResolver
RoutingResolver interface. Returns null for the non-bean method and
delegates to the corresponding persistent entity for the bean-method.| Constructor and Description |
|---|
DefaultRoutingResolver(MappingContext<? extends ElasticsearchPersistentEntity,? extends ElasticsearchPersistentProperty> mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRouting()
returns the routing when no entity is available.
|
<T> String |
getRouting(T bean)
Returns the routing for a bean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitjustpublic DefaultRoutingResolver(MappingContext<? extends ElasticsearchPersistentEntity,? extends ElasticsearchPersistentProperty> mappingContext)
public String getRouting()
RoutingResolvergetRouting in interface RoutingResolver@Nullable public <T> String getRouting(T bean)
RoutingResolvergetRouting in interface RoutingResolverbean - the bean to get the routing forCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.