public class OSQLFunctionDistinct extends OSQLFunctionAbstract
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
maxParams, minParams, name
Constructor and Description |
---|
OSQLFunctionDistinct() |
Modifier and Type | Method and Description |
---|---|
Object |
execute(Object iThis,
OIdentifiable iCurrentRecord,
Object iCurrentResult,
Object[] iParams,
OCommandContext iContext)
Process a record.
|
boolean |
filterResult()
A function can act both as transformation or filtering records.
|
String |
getSyntax()
Returns a convenient SQL String representation of the function.
|
aggregateResults, config, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult, shouldMergeDistributedResult, toString
public static final String NAME
public Object execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext)
OSQLFunction
iCurrentRecord
- : current recordiCurrentResult
- TODOiParams
- : function parameters, number is ensured to be within minParams and maxParams.iContext
- : object calling this functionpublic boolean filterResult()
OSQLFunction
Function should return null for the execute method if the record must be excluded.
filterResult
in interface OSQLFunction
filterResult
in class OSQLFunctionAbstract
public String getSyntax()
OSQLFunction
Example :
myFunction( param1, param2, [optionalParam3])
This text will be used in exception messages.
Copyright © 2009–2020 OrientDB. All rights reserved.