- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
arrayConcatExpression.toString(params, builder); } else if (json != null) { json.toString(params, builder); } else if (booleanValue != null) { builder.append(booleanValue.toString());
content.toString(params, builder); } else if (contentInputParam != null) { builder.append("CONTENT ");
metadata.toString(params, builder);
protected OLuceneResultSet results(OFromClause target, OExpression[] args, OCommandContext ctx, Object rightValue) { OIndex oIndex = searchForIndex(target, args); if (oIndex == null) { return null; } Map<String, Object> queryParams = new HashMap<>(); queryParams.put(SpatialQueryBuilderAbstract.GEO_FILTER, operator()); Object shape; if (args[1].getValue() instanceof OJson) { OJson json = (OJson) args[1].getValue(); ODocument doc = new ODocument().fromJSON(json.toString()); shape = doc.toMap(); } else { shape = args[1].execute((OIdentifiable) null, ctx); } queryParams.put(SpatialQueryBuilderAbstract.SHAPE, shape); onAfterParsing(queryParams, args, ctx, rightValue); Set<String> indexes = (Set<String>) ctx.getVariable("involvedIndexes"); if (indexes == null) { indexes = new HashSet<>(); ctx.setVariable("involvedIndexes", indexes); } indexes.add(oIndex.getName()); return (OLuceneResultSet) oIndex.get(queryParams); }