Enum CollectionApiMapping.Meta
- java.lang.Object
-
- java.lang.Enum<CollectionApiMapping.Meta>
-
- org.apache.solr.client.solrj.request.CollectionApiMapping.Meta
-
- All Implemented Interfaces:
Serializable
,Comparable<CollectionApiMapping.Meta>
,CollectionApiMapping.CommandMeta
- Enclosing class:
- CollectionApiMapping
public static enum CollectionApiMapping.Meta extends Enum<CollectionApiMapping.Meta> implements CollectionApiMapping.CommandMeta
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description CollectionParams.CollectionAction
action
Map<String,String>
attrsToParams
String
commandName
CollectionApiMapping.EndPoint
endPoint
SolrRequest.METHOD
method
Map<String,String>
paramsToAttrs
Map<String,String>
prefixParamsToAttrs
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionApiMapping.V2EndPoint
getEndPoint()
SolrRequest.METHOD
getHttpMethod()
the http method supported by this commandSolrRequest.METHOD
getMethod()
String
getName()
Iterator<String>
getParamNamesIterator(CommandOperation op)
String
getParamSubstitute(String param)
Given a v1 param, return the v2 attribute (possibly a dotted path).Object
getReverseParamSubstitute(String param)
static CollectionApiMapping.Meta
valueOf(String name)
Returns the enum constant of this type with the specified name.static CollectionApiMapping.Meta[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET_COLLECTIONS
public static final CollectionApiMapping.Meta GET_COLLECTIONS
-
GET_CLUSTER
public static final CollectionApiMapping.Meta GET_CLUSTER
-
GET_CLUSTER_OVERSEER
public static final CollectionApiMapping.Meta GET_CLUSTER_OVERSEER
-
GET_CLUSTER_STATUS_CMD
public static final CollectionApiMapping.Meta GET_CLUSTER_STATUS_CMD
-
DELETE_CLUSTER_STATUS
public static final CollectionApiMapping.Meta DELETE_CLUSTER_STATUS
-
GET_A_COLLECTION
public static final CollectionApiMapping.Meta GET_A_COLLECTION
-
LIST_ALIASES
public static final CollectionApiMapping.Meta LIST_ALIASES
-
CREATE_COLLECTION
public static final CollectionApiMapping.Meta CREATE_COLLECTION
-
DELETE_COLL
public static final CollectionApiMapping.Meta DELETE_COLL
-
RELOAD_COLL
public static final CollectionApiMapping.Meta RELOAD_COLL
-
MODIFY_COLLECTION
public static final CollectionApiMapping.Meta MODIFY_COLLECTION
-
MIGRATE_DOCS
public static final CollectionApiMapping.Meta MIGRATE_DOCS
-
MOVE_REPLICA
public static final CollectionApiMapping.Meta MOVE_REPLICA
-
REBALANCE_LEADERS
public static final CollectionApiMapping.Meta REBALANCE_LEADERS
-
CREATE_ALIAS
public static final CollectionApiMapping.Meta CREATE_ALIAS
-
DELETE_ALIAS
public static final CollectionApiMapping.Meta DELETE_ALIAS
-
ALIAS_PROP
public static final CollectionApiMapping.Meta ALIAS_PROP
-
CREATE_SHARD
public static final CollectionApiMapping.Meta CREATE_SHARD
-
SPLIT_SHARD
public static final CollectionApiMapping.Meta SPLIT_SHARD
-
DELETE_SHARD
public static final CollectionApiMapping.Meta DELETE_SHARD
-
CREATE_REPLICA
public static final CollectionApiMapping.Meta CREATE_REPLICA
-
DELETE_REPLICA
public static final CollectionApiMapping.Meta DELETE_REPLICA
-
SYNC_SHARD
public static final CollectionApiMapping.Meta SYNC_SHARD
-
ADD_REPLICA_PROPERTY
public static final CollectionApiMapping.Meta ADD_REPLICA_PROPERTY
-
DELETE_REPLICA_PROPERTY
public static final CollectionApiMapping.Meta DELETE_REPLICA_PROPERTY
-
SET_COLLECTION_PROPERTY
public static final CollectionApiMapping.Meta SET_COLLECTION_PROPERTY
-
ADD_ROLE
public static final CollectionApiMapping.Meta ADD_ROLE
-
REMOVE_ROLE
public static final CollectionApiMapping.Meta REMOVE_ROLE
-
SET_CLUSTER_PROPERTY
public static final CollectionApiMapping.Meta SET_CLUSTER_PROPERTY
-
SET_CLUSTER_PROPERTY_OBJ
public static final CollectionApiMapping.Meta SET_CLUSTER_PROPERTY_OBJ
-
UTILIZE_NODE
public static final CollectionApiMapping.Meta UTILIZE_NODE
-
BACKUP_COLLECTION
public static final CollectionApiMapping.Meta BACKUP_COLLECTION
-
RESTORE_COLLECTION
public static final CollectionApiMapping.Meta RESTORE_COLLECTION
-
GET_NODES
public static final CollectionApiMapping.Meta GET_NODES
-
FORCE_LEADER
public static final CollectionApiMapping.Meta FORCE_LEADER
-
BALANCE_SHARD_UNIQUE
public static final CollectionApiMapping.Meta BALANCE_SHARD_UNIQUE
-
-
Field Detail
-
commandName
public final String commandName
-
endPoint
public final CollectionApiMapping.EndPoint endPoint
-
method
public final SolrRequest.METHOD method
-
action
public final CollectionParams.CollectionAction action
-
-
Method Detail
-
values
public static CollectionApiMapping.Meta[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CollectionApiMapping.Meta c : CollectionApiMapping.Meta.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollectionApiMapping.Meta valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMethod
public SolrRequest.METHOD getMethod()
-
getName
public String getName()
- Specified by:
getName
in interfaceCollectionApiMapping.CommandMeta
-
getHttpMethod
public SolrRequest.METHOD getHttpMethod()
Description copied from interface:CollectionApiMapping.CommandMeta
the http method supported by this command- Specified by:
getHttpMethod
in interfaceCollectionApiMapping.CommandMeta
-
getEndPoint
public CollectionApiMapping.V2EndPoint getEndPoint()
- Specified by:
getEndPoint
in interfaceCollectionApiMapping.CommandMeta
-
getParamNamesIterator
public Iterator<String> getParamNamesIterator(CommandOperation op)
- Specified by:
getParamNamesIterator
in interfaceCollectionApiMapping.CommandMeta
-
getParamSubstitute
public String getParamSubstitute(String param)
Description copied from interface:CollectionApiMapping.CommandMeta
Given a v1 param, return the v2 attribute (possibly a dotted path).- Specified by:
getParamSubstitute
in interfaceCollectionApiMapping.CommandMeta
-
-