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, wait
just
public DefaultRoutingResolver(MappingContext<? extends ElasticsearchPersistentEntity,? extends ElasticsearchPersistentProperty> mappingContext)
public String getRouting()
RoutingResolver
getRouting
in interface RoutingResolver
@Nullable public <T> String getRouting(T bean)
RoutingResolver
getRouting
in interface RoutingResolver
bean
- the bean to get the routing forCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.