public abstract class OSpatialFunctionAbstractIndexable extends OSpatialFunctionAbstract implements OIndexableSQLFunction
factory
maxParams, minParams, name
Constructor and Description |
---|
OSpatialFunctionAbstractIndexable(String iName,
int iMinParams,
int iMaxParams) |
toShape
aggregateResults, config, filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult, shouldMergeDistributedResult, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
searchFromTarget
aggregateResults, config, execute, filterResult, getMaxParams, getMinParams, getName, getResult, getSyntax, mergeDistributedResult, setResult, shouldMergeDistributedResult
public 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)
OIndexableSQLFunction
canExecuteInline
in interface OIndexableSQLFunction
target
- 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)
OIndexableSQLFunction
allowsIndexedExecution
in interface OIndexableSQLFunction
target
- 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)
OIndexableSQLFunction
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.shouldExecuteAfterSearch
in interface OIndexableSQLFunction
target
- 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)
OIndexableSQLFunction
estimate
in interface OIndexableSQLFunction
target
- 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–2020 OrientDB. All rights reserved.