Created
May 20, 2014 22:05
-
-
Save jasonnerothin/60faf784abac90b56361 to your computer and use it in GitHub Desktop.
Compound Space Index Question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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