org.teiid.metadata
Enum FunctionMethod.Determinism

java.lang.Object
  extended by java.lang.Enum<FunctionMethod.Determinism>
      extended by org.teiid.metadata.FunctionMethod.Determinism
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FunctionMethod.Determinism>
Enclosing class:
FunctionMethod

public static enum FunctionMethod.Determinism
extends java.lang.Enum<FunctionMethod.Determinism>

DETERMINISTIC -> normal deterministic functions vdb -> lookup (however lookup values can be flushed at any time), current_database session -> env, user command -> command payload never -> rand, etc. Anything at a session level and above is treated as deterministic. This is not quite correct for lookup or env. Only in extremely rare circumstances would that be a problem. For now the commandPayload function is treated as a special case, like lookup, in that it is considered deterministic, but will be delayed in its evaluation until processing time.


Enum Constant Summary
COMMAND_DETERMINISTIC
           
DETERMINISTIC
           
NONDETERMINISTIC
           
SESSION_DETERMINISTIC
           
USER_DETERMINISTIC
           
VDB_DETERMINISTIC
           
 
Method Summary
static FunctionMethod.Determinism valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FunctionMethod.Determinism[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONDETERMINISTIC

public static final FunctionMethod.Determinism NONDETERMINISTIC

COMMAND_DETERMINISTIC

public static final FunctionMethod.Determinism COMMAND_DETERMINISTIC

SESSION_DETERMINISTIC

public static final FunctionMethod.Determinism SESSION_DETERMINISTIC

USER_DETERMINISTIC

public static final FunctionMethod.Determinism USER_DETERMINISTIC

VDB_DETERMINISTIC

public static final FunctionMethod.Determinism VDB_DETERMINISTIC

DETERMINISTIC

public static final FunctionMethod.Determinism DETERMINISTIC
Method Detail

values

public static FunctionMethod.Determinism[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FunctionMethod.Determinism c : FunctionMethod.Determinism.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FunctionMethod.Determinism valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.