public interface RoutedAlias
Modifier and Type | Interface and Description |
---|---|
static class |
RoutedAlias.SupportedRouterTypes
Types supported.
|
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_COLLECTION_PREFIX |
static Set<String> |
MINIMAL_REQUIRED_PARAMS |
static String |
ROUTED_ALIAS_NAME_CORE_PROP |
static String |
ROUTER_FIELD |
static String |
ROUTER_TYPE_NAME |
Modifier and Type | Method and Description |
---|---|
String |
computeInitialCollectionName()
Create the initial collection for this RoutedAlias if applicable.
|
String |
createCollectionsIfRequired(AddUpdateCommand cmd)
Create any required collections and return the name of the collection to which the current document should be sent.
|
static RoutedAlias |
fromProps(String aliasName,
Map<String,String> props)
Factory method for implementations of this interface.
|
Map<String,String> |
getAliasMetadata() |
String |
getAliasName()
The name of the alias.
|
Set<String> |
getOptionalParams() |
Set<String> |
getRequiredParams() |
String |
getRouteField() |
static SolrException |
newAliasMustExistException(String aliasName) |
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.
|
static final String ROUTER_TYPE_NAME
static final String ROUTER_FIELD
static final String CREATE_COLLECTION_PREFIX
static final String ROUTED_ALIAS_NAME_CORE_PROP
static SolrException newAliasMustExistException(String aliasName)
static RoutedAlias fromProps(String aliasName, Map<String,String> props) throws SolrException
aliasName
- The alias name (will be returned by getAliasName()
props
- The properties from an overseer message.SolrException
- If the properties are invalid or the router type is unknown.boolean updateParsedCollectionAliases(ZkController zkController)
String computeInitialCollectionName()
String getAliasName()
String getRouteField()
void validateRouteValue(AddUpdateCommand cmd) throws SolrException
cmd
- the command containing the documentSolrException
String createCollectionsIfRequired(AddUpdateCommand cmd)
cmd
- The command that might cause collection creationCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.