
public abstract class OSpatialFunctionAbstractIndexable extends OSpatialFunctionAbstract implements OIndexableSQLFunction
factorymaxParams, minParams, name| Constructor and Description |
|---|
OSpatialFunctionAbstractIndexable(String iName,
int iMinParams,
int iMaxParams) |
toShapeaggregateResults, config, filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult, shouldMergeDistributedResult, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsearchFromTargetaggregateResults, config, execute, filterResult, getMaxParams, getMinParams, getName, getResult, getSyntax, mergeDistributedResult, setResult, shouldMergeDistributedResultpublic OSpatialFunctionAbstractIndexable(String iName, int iMinParams, int iMaxParams)
protected OLuceneSpatialIndex searchForIndex(OFromClause target, OExpression[] args)
protected ODatabaseDocumentInternal getDb()
protected Iterable<OIdentifiable> results(OFromClause target, OExpression[] args, OCommandContext ctx, Object rightValue)
protected void onAfterParsing(Map<String,Object> params, OExpression[] args, OCommandContext ctx, Object rightValue)
protected abstract String operator()
public boolean canExecuteInline(OFromClause target, OBinaryCompareOperator operator, Object rightValue, OCommandContext ctx, OExpression... args)
OIndexableSQLFunctioncanExecuteInline in interface OIndexableSQLFunctiontarget - the query targetoperator - the operator after the function, eg. in
select from Foo where myFunction(name) > 4 the operator is >rightValue - the value that has to be compared to the function result, eg. in
select from Foo where myFunction(name) > 4 the right value is 4ctx - the command context for this queryargs - the function arguments, eg. in select from Foo where myFunction(name) > 4
the arguments are [name]public boolean allowsIndexedExecution(OFromClause target, OBinaryCompareOperator operator, Object rightValue, OCommandContext ctx, OExpression... args)
OIndexableSQLFunctionallowsIndexedExecution in interface OIndexableSQLFunctiontarget - the query targetoperator - the operator after the function, eg. in
select from Foo where myFunction(name) > 4 the operator is >rightValue - the value that has to be compared to the function result, eg. in
select from Foo where myFunction(name) > 4 the right value is 4ctx - the command context for this queryargs - the function arguments, eg. in select from Foo where myFunction(name) > 4
the arguments are [name]public boolean shouldExecuteAfterSearch(OFromClause target, OBinaryCompareOperator operator, Object rightValue, OCommandContext ctx, OExpression... args)
OIndexableSQLFunctionOIndexableSQLFunction.searchFromTarget(com.orientechnologies.orient.core.sql.parser.OFromClause, com.orientechnologies.orient.core.sql.parser.OBinaryCompareOperator, java.lang.Object, com.orientechnologies.orient.core.command.OCommandContext, com.orientechnologies.orient.core.sql.parser.OExpression...) is
executed.shouldExecuteAfterSearch in interface OIndexableSQLFunctiontarget - the query targetoperator - the operator after the function, eg. in
select from Foo where myFunction(name) > 4 the operator is >rightValue - the value that has to be compared to the function result, eg. in
select from Foo where myFunction(name) > 4 the right value is 4ctx - the command context for this queryargs - the function arguments, eg. in select from Foo where myFunction(name) > 4
the arguments are [name]OIndexableSQLFunction.searchFromTarget(com.orientechnologies.orient.core.sql.parser.OFromClause, com.orientechnologies.orient.core.sql.parser.OBinaryCompareOperator, java.lang.Object, com.orientechnologies.orient.core.command.OCommandContext, com.orientechnologies.orient.core.sql.parser.OExpression...) is
executed. False otherwisepublic long estimate(OFromClause target, OBinaryCompareOperator operator, Object rightValue, OCommandContext ctx, OExpression... args)
OIndexableSQLFunctionestimate in interface OIndexableSQLFunctiontarget - the query targetoperator - the operator after the function, eg. in
select from Foo where myFunction(name) > 4 the operator is >rightValue - the value that has to be compared to the function result, eg. in
select from Foo where myFunction(name) > 4 the right value is 4ctx - the command context for this queryargs - the function arguments, eg. in select from Foo where myFunction(name) > 4
the arguments are [name]Copyright © 2009–2025 OrientDB. All rights reserved.