public abstract class OLuceneSearchFunctionTemplate extends OSQLFunctionAbstract implements OIndexableSQLFunction
maxParams, minParams, name
Constructor and Description |
---|
OLuceneSearchFunctionTemplate(String iName,
int iMinParams,
int iMaxParams) |
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 OLuceneSearchFunctionTemplate(String iName, int iMinParams, int iMaxParams)
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]protected abstract OLuceneFullTextIndex searchForIndex(OFromClause target, OCommandContext ctx, OExpression... args)
Copyright © 2009–2020 OrientDB. All rights reserved.