Class DocumentRoutesDescriptor
java.lang.Object
org.hibernate.search.mapper.pojo.route.DocumentRoutesDescriptor
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionDocumentRoutesDescriptor
(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes) -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentRoutesDescriptor
fromLegacyRoutingKey
(String providedRoutingKey) A util to convert the legacy representation of a route (a single string) to aDocumentRoutesDescriptor
.static DocumentRoutesDescriptor
of
(DocumentRouteDescriptor currentRoute) static DocumentRoutesDescriptor
of
(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
providedRoutingKey
isnull
, 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
-