Class GroupPartitionId
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.partstate.GroupPartitionId
-
- All Implemented Interfaces:
Comparable<GroupPartitionId>
public class GroupPartitionId extends Object implements Comparable<GroupPartitionId>
Pair of cache group ID with partition ID. Immutable, comparable class, may be used as key in maps
-
-
Constructor Summary
Constructors Constructor Description GroupPartitionId(int grpId, int partId)Creates group-partition tuple.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(@NotNull GroupPartitionId o)@NotNull FullPageIdcreateFirstPageFullId()booleanequals(Object o)static bytegetFlagByPartId(int partId)intgetGroupId()intgetPartitionId()static bytegetTypeByPartId(int partId)inthashCode()StringtoString()
-
-
-
Method Detail
-
getFlagByPartId
public static byte getFlagByPartId(int partId)
- Parameters:
partId- Partition ID.- Returns:
- flag to be used for partition
-
getTypeByPartId
public static byte getTypeByPartId(int partId)
- Parameters:
partId- Partition ID.- Returns:
- page store type to be used for partition
-
getGroupId
public int getGroupId()
- Returns:
- cache ID
-
getPartitionId
public int getPartitionId()
- Returns:
- Partition ID
-
compareTo
public int compareTo(@NotNull @NotNull GroupPartitionId o)- Specified by:
compareToin interfaceComparable<GroupPartitionId>
-
createFirstPageFullId
@NotNull public @NotNull FullPageId createFirstPageFullId()
- Returns:
- will return super-page (metapage) of this partition
-
-