org.umlg.sqlg.groovy.plugin.SqlgH2GremlinPlugin Maven / Gradle / Ivy
package org.umlg.sqlg.groovy.plugin;
import org.apache.tinkerpop.gremlin.groovy.plugin.GremlinPlugin;
import org.apache.tinkerpop.gremlin.groovy.plugin.IllegalEnvironmentException;
import org.apache.tinkerpop.gremlin.groovy.plugin.PluginAcceptor;
import org.apache.tinkerpop.gremlin.groovy.plugin.PluginInitializationException;
import org.umlg.sqlg.structure.SqlgGraph;
import java.util.HashSet;
import java.util.Set;
/**
* @author Lukas Krejci
* @since 1.3.0
*/
public class SqlgH2GremlinPlugin implements GremlinPlugin {
private static final String IMPORT = "import ";
private static final String DOT_STAR = ".*";
private static final Set IMPORTS = new HashSet() {{
add(IMPORT + SqlgGraph.class.getPackage().getName() + DOT_STAR);
}};
@Override
public String getName() {
return "sqlg.h2";
}
@Override
public void pluginTo(final PluginAcceptor pluginAcceptor) throws PluginInitializationException, IllegalEnvironmentException {
pluginAcceptor.addImports(IMPORTS);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy