Class DocumentRoutesDescriptor
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.route.DocumentRoutesDescriptor
-
- All Implemented Interfaces:
Serializable
public final class DocumentRoutesDescriptor extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentRoutesDescriptor(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentRouteDescriptor
currentRoute()
static 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)
Collection<DocumentRouteDescriptor>
previousRoutes()
String
toString()
-
-
-
Constructor Detail
-
DocumentRoutesDescriptor
public DocumentRoutesDescriptor(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)
-
-
Method Detail
-
of
public static DocumentRoutesDescriptor of(DocumentRouteDescriptor currentRoute)
-
of
public static DocumentRoutesDescriptor of(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)
-
fromLegacyRoutingKey
public static DocumentRoutesDescriptor fromLegacyRoutingKey(String providedRoutingKey)
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
.
-
currentRoute
public DocumentRouteDescriptor currentRoute()
-
previousRoutes
public Collection<DocumentRouteDescriptor> previousRoutes()
-
-