public class CategoryRoutedAlias extends Object implements RoutedAlias
RoutedAlias.SupportedRouterTypes| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
OPTIONAL_ROUTER_PARAMS
Optional parameters for creating a category routed alias excluding parameters for collection creation.
|
static Set<String> |
REQUIRED_ROUTER_PARAMS
Parameters required for creating a category routed alias
|
static String |
ROUTER_MAX_CARDINALITY |
static String |
ROUTER_MUST_MATCH |
static String |
UNINITIALIZED |
CREATE_COLLECTION_PREFIX, MINIMAL_REQUIRED_PARAMS, ROUTED_ALIAS_NAME_CORE_PROP, ROUTER_FIELD, ROUTER_TYPE_NAME| Modifier and Type | Method and Description |
|---|---|
String |
computeInitialCollectionName()
Create the initial collection for this RoutedAlias if applicable.
|
String |
createCollectionsIfRequired(AddUpdateCommand cmd)
Method to possibly create a collection.
|
Map<String,String> |
getAliasMetadata() |
String |
getAliasName()
The name of the alias.
|
Set<String> |
getOptionalParams() |
Set<String> |
getRequiredParams() |
String |
getRouteField() |
boolean |
updateParsedCollectionAliases(ZkController zkController)
Ensure our parsed version of the alias collection list is up to date.
|
void |
validateRouteValue(AddUpdateCommand cmd)
Check that the value we will be routing on is legal for this type of routed alias.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromProps, newAliasMustExistExceptionpublic static final String UNINITIALIZED
public static final String ROUTER_MAX_CARDINALITY
public static final Set<String> REQUIRED_ROUTER_PARAMS
public static final String ROUTER_MUST_MATCH
public boolean updateParsedCollectionAliases(ZkController zkController)
RoutedAliasupdateParsedCollectionAliases in interface RoutedAliaspublic String getAliasName()
RoutedAliasgetAliasName in interface RoutedAliaspublic String getRouteField()
getRouteField in interface RoutedAliaspublic void validateRouteValue(AddUpdateCommand cmd) throws SolrException
RoutedAliasvalidateRouteValue in interface RoutedAliascmd - the command containing the documentSolrExceptionpublic String createCollectionsIfRequired(AddUpdateCommand cmd)
createCollectionsIfRequired in interface RoutedAliascmd - The command that might cause collection creationpublic String computeInitialCollectionName()
RoutedAliascomputeInitialCollectionName in interface RoutedAliaspublic Map<String,String> getAliasMetadata()
getAliasMetadata in interface RoutedAliaspublic Set<String> getRequiredParams()
getRequiredParams in interface RoutedAliaspublic Set<String> getOptionalParams()
getOptionalParams in interface RoutedAliasCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.