Search in sources :

Example 1 with DefaultQueryCompiler

use of io.georocket.query.DefaultQueryCompiler in project georocket by georocket.

the class IndexerVerticle method createQueryCompiler.

private DefaultQueryCompiler createQueryCompiler() {
    JsonObject config = vertx.getOrCreateContext().config();
    String cls = config.getString(ConfigConstants.QUERY_COMPILER_CLASS, DefaultQueryCompiler.class.getName());
    try {
        return (DefaultQueryCompiler) Class.forName(cls).newInstance();
    } catch (ReflectiveOperationException e) {
        throw new RuntimeException("Could not create a DefaultQueryCompiler", e);
    }
}
Also used : JsonObject(io.vertx.core.json.JsonObject) DefaultQueryCompiler(io.georocket.query.DefaultQueryCompiler)

Example 2 with DefaultQueryCompiler

use of io.georocket.query.DefaultQueryCompiler in project georocket by georocket.

the class MetadataVerticle method createQueryCompiler.

private DefaultQueryCompiler createQueryCompiler() {
    JsonObject config = vertx.getOrCreateContext().config();
    String cls = config.getString(ConfigConstants.QUERY_COMPILER_CLASS, DefaultQueryCompiler.class.getName());
    try {
        return (DefaultQueryCompiler) Class.forName(cls).newInstance();
    } catch (ReflectiveOperationException e) {
        throw new RuntimeException("Could not create a DefaultQueryCompiler", e);
    }
}
Also used : JsonObject(io.vertx.core.json.JsonObject) DefaultQueryCompiler(io.georocket.query.DefaultQueryCompiler)

Aggregations

DefaultQueryCompiler (io.georocket.query.DefaultQueryCompiler)2 JsonObject (io.vertx.core.json.JsonObject)2