Enum CollocationModelType
- java.lang.Object
-
- java.lang.Enum<CollocationModelType>
-
- org.apache.ignite.internal.processors.query.h2.opt.join.CollocationModelType
-
- All Implemented Interfaces:
Serializable,Comparable<CollocationModelType>
public enum CollocationModelType extends Enum<CollocationModelType>
Collocation type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PARTITIONED_COLLOCATEDPARTITIONED_NOT_COLLOCATEDREPLICATED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCollocated()booleanisPartitioned()static CollocationModelTypeof(boolean partitioned, boolean collocated)static CollocationModelTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CollocationModelType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARTITIONED_COLLOCATED
public static final CollocationModelType PARTITIONED_COLLOCATED
-
PARTITIONED_NOT_COLLOCATED
public static final CollocationModelType PARTITIONED_NOT_COLLOCATED
-
REPLICATED
public static final CollocationModelType REPLICATED
-
-
Method Detail
-
values
public static CollocationModelType[] 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 (CollocationModelType c : CollocationModelType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollocationModelType 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
-
isPartitioned
public boolean isPartitioned()
- Returns:
trueIf partitioned.
-
isCollocated
public boolean isCollocated()
- Returns:
trueIf collocated.
-
of
public static CollocationModelType of(boolean partitioned, boolean collocated)
- Parameters:
partitioned- Partitioned.collocated- Collocated.- Returns:
- Type.
-
-