@PersistantProperty(property="target") @PersistantProperty(property="asc",defaultValue="true") @PersistantProperty(property="nullFirst",defaultValue="true") @PersistantProperty(property="by") @PersistantProperty(property="inplace",defaultValue="true") public class MActionSort extends AbstractBasicAction implements IExecutable.ValueReturning
IExecutable.ValueReturning
Constructor and Description |
---|
MActionSort() |
MActionSort(IReadAccessor target) |
Modifier and Type | Method and Description |
---|---|
MActionSort |
clone()
Clones the Addon.
|
protected void |
compileExecutable(ICompilationContext ctxt)
Called by
AbstractExecutable.compile(ICompilationContext) to perform compilation operations. |
boolean |
equals(Object o) |
List<IReadAccessor> |
getBy() |
protected Object |
getCol(IExecutionContext ctxt,
Object value) |
CostInfo |
getEstimatedReadCost(ICompilationContext ctxt)
This kind of executable should provide a cost estimation in order to be used as accessor
and be optimized effectively.
|
String |
getImplementationId()
Unique addon implementation ID.
|
IReadAccessor |
getTarget() |
int |
hashCode() |
protected IExecutionResult |
internalExecute(IExecutionContext ctxt) |
boolean |
isAsc() |
boolean |
isInplace() |
boolean |
isNullFirst() |
void |
setAsc(boolean asc) |
void |
setBy(List<IReadAccessor> by) |
void |
setInplace(boolean inplace) |
void |
setNullFirst(boolean nullFirst) |
void |
setTarget(IReadAccessor target) |
void |
toString(OuterWithLevel outer)
Method used to send String representation of the current object to the
OuterWithLevel . |
execute
combineResults, compile, compileExecutables, execute, execute, getProperties, getProperty, hasProperties, hasProperty, removeProperty, setProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
compile, execute, getProperties, hasProperties, hasProperty, removeProperty
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String SORT_ID
public MActionSort()
public MActionSort(IReadAccessor target)
protected void compileExecutable(ICompilationContext ctxt) throws MRuleValidationException
AbstractExecutable
AbstractExecutable.compile(ICompilationContext)
to perform compilation operations.compileExecutable
in class AbstractExecutable
MRuleValidationException
public CostInfo getEstimatedReadCost(ICompilationContext ctxt) throws MRuleValidationException
IExecutable.ValueReturning
getEstimatedReadCost
in interface IExecutable.ValueReturning
MRuleValidationException
protected IExecutionResult internalExecute(IExecutionContext ctxt) throws MActionExecutionException
internalExecute
in class AbstractExecutable
MActionExecutionException
IAction.execute(IExecutionContext)
protected Object getCol(IExecutionContext ctxt, Object value) throws UtilsException
UtilsException
public String getImplementationId()
IAddon
getImplementationId
in interface IAddon
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.toString
in interface Outable
IOException
public MActionSort clone()
IAddon
clone
in interface IAction
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface IExecutable
clone
in class AbstractBasicAction
public IReadAccessor getTarget()
public void setTarget(IReadAccessor target)
public boolean isAsc()
public void setAsc(boolean asc)
public boolean isNullFirst()
public void setNullFirst(boolean nullFirst)
public boolean isInplace()
public void setInplace(boolean inplace)
public List<IReadAccessor> getBy()
public void setBy(List<IReadAccessor> by)