Skip to content

Instantly share code, notes, and snippets.

@jasonnerothin
Created May 20, 2014 22:05
Show Gist options
  • Save jasonnerothin/60faf784abac90b56361 to your computer and use it in GitHub Desktop.
Save jasonnerothin/60faf784abac90b56361 to your computer and use it in GitHub Desktop.
Compound Space Index Question
package com.belk.catalogcache.domain;
import com.gigaspaces.annotation.pojo.CompoundSpaceIndex;
import com.gigaspaces.annotation.pojo.CompoundSpaceIndexes;
import com.gigaspaces.annotation.pojo.SpaceClass;
/**
* Created by IntelliJ IDEA.
* User: jason
* Date: 5/20/14
* Time: 5:00 PM
*/
@SpaceClass
@CompoundSpaceIndexes(value= {
@CompoundSpaceIndex(paths = {"a", "b"}), // index 1
@CompoundSpaceIndex(paths = {"a", "b", "c"}) // index 2
})
public class Spacey {
private String a;
private String b;
private String c;
public String getA() {
return a;
}
public void setA(String a) {
this.a = a;
}
public String getB() {
return b;
}
public void setB(String b) {
this.b = b;
}
public String getC() {
return c;
}
public void setC(String c) {
this.c = c;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment