Created
December 6, 2011 23:52
-
-
Save espeed/1440683 to your computer and use it in GitHub Desktop.
Create Automatic Vertex Index
This file contains 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
import groovy.json.JsonSlurper | |
def slurper = new JsonSlurper() | |
keys = null | |
if (keys != null) | |
keys = slurper.parseText(keys) | |
public abstract class People implements Vertex {} | |
index = g.createAutomaticIndex('people',People.class,keys) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment