Class DocumentRoutesDescriptor
java.lang.Object
org.hibernate.search.mapper.pojo.route.DocumentRoutesDescriptor
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentRoutesDescriptor(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes) -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentRoutesDescriptorfromLegacyRoutingKey(String providedRoutingKey) A util to convert the legacy representation of a route (a single string) to aDocumentRoutesDescriptor.static DocumentRoutesDescriptorof(DocumentRouteDescriptor currentRoute) static DocumentRoutesDescriptorof(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes) toString()
-
Constructor Details
-
DocumentRoutesDescriptor
public DocumentRoutesDescriptor(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)
-
-
Method Details
-
of
-
of
public static DocumentRoutesDescriptor of(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes) -
fromLegacyRoutingKey
A util to convert the legacy representation of a route (a single string) to aDocumentRoutesDescriptor.It will assume no routes are given if
providedRoutingKeyisnull, so it's not possible to represent the default route using this util.- Parameters:
providedRoutingKey- The provided routing key, ornull.- Returns:
- The corresponding routes, or
null.
-
toString
-
currentRoute
-
previousRoutes
-