be.SIRAPRISE.typeimplementations
Class GreaterOrEqualOperatorImplementation

java.lang.Object
  extended by be.SIRAPRISE.typeimplementations.GreaterOrEqualOperatorImplementation
All Implemented Interfaces:
OperatorImplementation, OperatorImplementation_V0104

public final class GreaterOrEqualOperatorImplementation
extends java.lang.Object
implements OperatorImplementation_V0104

GreaterOrEqualOperatorImplementation is a generic implementation implementing the behaviour of a GE operator, for all types for which an ordering is defined in the form of a GT operator. It operates by invoking the LT operator implementation of the type,, and negating the result.

Author:
Erwin

Constructor Summary
GreaterOrEqualOperatorImplementation(LessThanOperatorImplementation lessThanOperatorImplementation)
          Creates the GreaterOrEqualOperatorImplementation
 
Method Summary
 ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
          Performs the actual logic of the operator.
 java.lang.String[] getArgumentTypeNames()
          Gets the list of names of types of the needed argument values
 java.lang.String getReturnTypeName()
          Gets the name of the type of the return value
 boolean isDeterministic()
          Tells whether the operator is deterministic with respect to the arguments of its invocations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreaterOrEqualOperatorImplementation

public GreaterOrEqualOperatorImplementation(LessThanOperatorImplementation lessThanOperatorImplementation)
Creates the GreaterOrEqualOperatorImplementation

Parameters:
lessThanOperatorImplementation - The implementation object for the ordering operator (GT) corresponding to this less-than operator
Method Detail

executeOperator

public ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
Description copied from interface: OperatorImplementation
Performs the actual logic of the operator.

Specified by:
executeOperator in interface OperatorImplementation
Parameters:
args - the argument list. The list must hold as many ValueBuffer objects as there are arguments to the operator, and each ValueBuffer object holds a value for some argument to the operator. ValueBuffer objects on the list must appear in the same order as the operator argument declarations.
Returns:
A ValueBuffer object holding the result value of the operator execution in internal format.

getArgumentTypeNames

public java.lang.String[] getArgumentTypeNames()
Description copied from interface: OperatorImplementation
Gets the list of names of types of the needed argument values

Specified by:
getArgumentTypeNames in interface OperatorImplementation
Returns:
The names of the argument types

getReturnTypeName

public java.lang.String getReturnTypeName()
Description copied from interface: OperatorImplementation
Gets the name of the type of the return value

Specified by:
getReturnTypeName in interface OperatorImplementation
Returns:
the name of the type of the return value

isDeterministic

public boolean isDeterministic()
Description copied from interface: OperatorImplementation_V0104
Tells whether the operator is deterministic with respect to the arguments of its invocations. An operator is deterministic if and only if for any two distinct invocations, if all the argument values are the same, then the result value returned will also be the same. An example of a nondeterministic operators is RANDOM().

Specified by:
isDeterministic in interface OperatorImplementation_V0104
Returns:
true if the operator is deterministic.