Package org.alfresco.repo.index.shard
Enum ShardMethodEnum
- java.lang.Object
-
- java.lang.Enum<ShardMethodEnum>
-
- org.alfresco.repo.index.shard.ShardMethodEnum
-
- All Implemented Interfaces:
Serializable,Comparable<ShardMethodEnum>
public enum ShardMethodEnum extends Enum<ShardMethodEnum>
Enum that details sharding type- Author:
- Andy, Michael Suzuki
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACL_IDDATEDB_IDDB_ID_RANGEEXPLICIT_IDMOD_ACL_IDPROPERTYUNKOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShardMethodEnumgetShardMethod(String shardMethod)static ShardMethodEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static ShardMethodEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOD_ACL_ID
public static final ShardMethodEnum MOD_ACL_ID
-
ACL_ID
public static final ShardMethodEnum ACL_ID
-
DB_ID
public static final ShardMethodEnum DB_ID
-
DB_ID_RANGE
public static final ShardMethodEnum DB_ID_RANGE
-
EXPLICIT_ID
public static final ShardMethodEnum EXPLICIT_ID
-
DATE
public static final ShardMethodEnum DATE
-
UNKOWN
public static final ShardMethodEnum UNKOWN
-
PROPERTY
public static final ShardMethodEnum PROPERTY
-
-
Method Detail
-
values
public static ShardMethodEnum[] 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 (ShardMethodEnum c : ShardMethodEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShardMethodEnum 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
-
getShardMethod
public static ShardMethodEnum getShardMethod(String shardMethod)
-
-