If you have a cache where you have the key as ObjectKey and value as
ObjectValue, and the classes are like the following, is it possible in Ignite
to have data co-location based on a non-key attribute? In this case on the
private int c field in ObjectValue? I believe @AffinityKeyMapped annotation
works only on Key fields?
public class ObjectKey{
private int a;
private int b;
public int getA() {
return a;
}
public int getB() {
return b;
}
public ObjectKey(int a, int b) {
this.a = a;
this.b = b;
}
}
public class ObjectValue{
private int c;
private String someValue;
public int getC() {
return c;
}
public String getSomeValue() {
return someValue;
}
public ObjectValue(int c, String someValue) {
this.c = c;
this.someValue = someValue;
}
}
_________________________________________________________
This email, its contents, and any attachments transmitted with it are intended
only for the addressee(s) and may be confidential and legally privileged. We do
not waive any confidentiality by misdelivery. If you have received this email
in error, please notify the sender immediately and delete it. You should not
copy it, forward it or otherwise use the contents, attachments or information
in any way. Any liability for viruses is excluded to the fullest extent
permitted by law.
Tudor Capital Europe LLP (TCE) is authorised and regulated by The Financial
Conduct Authority (the FCA). TCE is registered as a limited liability
partnership in England and Wales No: OC340673 with its registered office at 10
New Burlington Street, London, W1S 3BE, United Kingdom