Class PartitionHashRecord
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.verify.PartitionHashRecord
-
- All Implemented Interfaces:
Serializable
public class PartitionHashRecord extends Object implements Serializable
Record containing partition checksum, primary flag and consistent ID of owner.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartitionHashRecord(PartitionKey partKey, boolean isPrimary, Object consistentId, int partHash, long updateCntr, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectconsistentId()booleanequals(Object o)inthashCode()booleanisPrimary()intpartitionHash()PartitionKeypartitionKey()longsize()StringtoString()longupdateCounter()
-
-
-
Constructor Detail
-
PartitionHashRecord
public PartitionHashRecord(PartitionKey partKey, boolean isPrimary, Object consistentId, int partHash, long updateCntr, long size)
- Parameters:
partKey- Partition key.isPrimary- Is primary.consistentId- Consistent id.partHash- Partition hash.updateCntr- Update counter.size- Size.
-
-
Method Detail
-
partitionKey
public PartitionKey partitionKey()
- Returns:
- Partition key.
-
isPrimary
public boolean isPrimary()
- Returns:
- Is primary.
-
consistentId
public Object consistentId()
- Returns:
- Consistent id.
-
partitionHash
public int partitionHash()
- Returns:
- Partition hash.
-
updateCounter
public long updateCounter()
- Returns:
- Update counter.
-
size
public long size()
- Returns:
- Size.
-
-