Package org.alfresco.repo.index.shard
Enum ShardMethodEnum
- java.lang.Object
-
- java.lang.Enum<ShardMethodEnum>
-
- org.alfresco.repo.index.shard.ShardMethodEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShardMethodEnum>
public enum ShardMethodEnum extends java.lang.Enum<ShardMethodEnum>
Enum that details sharding type.- Author:
- Andy, Michael Suzuki, agazzarini
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACL_ID
DATE
DB_ID
DB_ID_RANGE
EXPLICIT_ID
EXPLICIT_ID_FALLBACK_LRIS
LAST_REGISTERED_INDEXING_SHARD
MOD_ACL_ID
PROPERTY
UNKOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShardMethodEnum
getShardMethod(java.lang.String shardMethod)
static ShardMethodEnum
valueOf(java.lang.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
-
EXPLICIT_ID_FALLBACK_LRIS
public static final ShardMethodEnum EXPLICIT_ID_FALLBACK_LRIS
-
LAST_REGISTERED_INDEXING_SHARD
public static final ShardMethodEnum LAST_REGISTERED_INDEXING_SHARD
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getShardMethod
public static ShardMethodEnum getShardMethod(java.lang.String shardMethod)
-
-