Class SolrIdentifierValidator
- java.lang.Object
-
- org.apache.solr.client.solrj.util.SolrIdentifierValidator
-
public class SolrIdentifierValidator extends Object
Ensures that provided identifiers align with Solr's recommendations/requirements for choosing collection, core, etc identifiers. Identifiers are allowed to contain underscores, periods, hyphens, and alphanumeric characters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SolrIdentifierValidator.IdentifierType
-
Constructor Summary
Constructors Constructor Description SolrIdentifierValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getIdentifierMessage(SolrIdentifierValidator.IdentifierType identifierType, String name)
static String
validateAliasName(String alias)
static String
validateCollectionName(String collectionName)
static String
validateCoreName(String coreName)
static String
validateName(SolrIdentifierValidator.IdentifierType type, String name)
static String
validateShardName(String shardName)
-
-
-
Method Detail
-
validateName
public static String validateName(SolrIdentifierValidator.IdentifierType type, String name)
-
getIdentifierMessage
public static String getIdentifierMessage(SolrIdentifierValidator.IdentifierType identifierType, String name)
-
-