be.SIRAPRISE.typeimplementations
Class TOLONG_INT

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

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

The TOLONG operator "casts" an INT to a LONG

Author:
Erwin

Constructor Summary
TOLONG_INT()
           
 
Method Summary
 ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
          The operator returns the LONG value that represents the same number as the given INT argument.
 java.lang.String[] getArgumentTypeNames()
          The operator takes a single argument of type INT
 java.lang.String getReturnTypeName()
          The return type is LONG
 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

TOLONG_INT

public TOLONG_INT()
Method Detail

executeOperator

public ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
The operator returns the LONG value that represents the same number as the given INT argument.

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()
The operator takes a single argument of type INT

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

getReturnTypeName

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

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.