be.SIRAPRISE.typeimplementations
Class SUB_TIMEOFDAY_TIMEOFDAY

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

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

The timeofday difference operator. SUB returns the difference between two TIMEOFDAY values as another TIMEOFDAY value. If the subtrahend represents a later time than the minuend (making the result "negative" as it were), then this negative result is incremented by 24 hrs. I.e., the subtrahend is then assumed to represent a time "of the previous day".

Author:
Erwin

Constructor Summary
SUB_TIMEOFDAY_TIMEOFDAY()
           
 
Method Summary
 ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
          SUB returns the difference between two TIMEOFDAY values as another TIMEOFDAY value.
 java.lang.String[] getArgumentTypeNames()
          SUB takes two arguments, both of type TIMEOFDAY
 java.lang.String getReturnTypeName()
          The return type is TIMEOFDAY
 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

SUB_TIMEOFDAY_TIMEOFDAY

public SUB_TIMEOFDAY_TIMEOFDAY()
Method Detail

executeOperator

public ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
SUB returns the difference between two TIMEOFDAY values as another TIMEOFDAY value.

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()
SUB takes two arguments, both of type TIMEOFDAY

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

getReturnTypeName

public java.lang.String getReturnTypeName()
The return type is TIMEOFDAY

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.