public class BinaryFieldIdentityResolver extends BinaryAbstractIdentityResolver
Standard polynomial function with multiplier 31 is used to calculate hash code. For example, for three
fields [a, b, c]it would be hash = 31 * (31 * a + b) + c. Order of fields is important.
| Constructor and Description |
|---|
BinaryFieldIdentityResolver()
Default constructor.
|
BinaryFieldIdentityResolver(BinaryFieldIdentityResolver other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals0(BinaryObject o1,
BinaryObject o2)
Internal equals routine.
|
String[] |
getFieldNames() |
int |
hashCode0(BinaryObject obj)
Internal hash code routine.
|
BinaryFieldIdentityResolver |
setFieldNames(String... fieldNames)
Set field names.
|
String |
toString() |
equals, hashCodepublic BinaryFieldIdentityResolver()
public BinaryFieldIdentityResolver(BinaryFieldIdentityResolver other)
other - Other instance.public String[] getFieldNames()
public BinaryFieldIdentityResolver setFieldNames(String... fieldNames)
fieldNames - Field names.this for chaining.public int hashCode0(BinaryObject obj)
hashCode0 in class BinaryAbstractIdentityResolverobj - Object.public boolean equals0(BinaryObject o1, BinaryObject o2)
equals0 in class BinaryAbstractIdentityResolvero1 - First object.o2 - Second object.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016