Package org.apache.ignite.examples.model
Class EmployeeKey
- java.lang.Object
-
- org.apache.ignite.examples.model.EmployeeKey
-
public class EmployeeKey extends java.lang.ObjectThis class represents key for employee object.Used in query example to collocate employees with their organizations.
-
-
Constructor Summary
Constructors Constructor Description EmployeeKey()Required for binary deserialization.EmployeeKey(int id, int organizationId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()intid()intorganizationId()java.lang.StringtoString()
-
-
-
Method Detail
-
id
public int id()
- Returns:
- ID.
-
organizationId
public int organizationId()
- Returns:
- Organization ID.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-