com.espertech.esper.client
Enum ConfigurationRevisionEventType.PropertyRevision

java.lang.Object
  extended by java.lang.Enum<ConfigurationRevisionEventType.PropertyRevision>
      extended by com.espertech.esper.client.ConfigurationRevisionEventType.PropertyRevision
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConfigurationRevisionEventType.PropertyRevision>
Enclosing class:
ConfigurationRevisionEventType

public static enum ConfigurationRevisionEventType.PropertyRevision
extends java.lang.Enum<ConfigurationRevisionEventType.PropertyRevision>

Enumeration for specifying a strategy to use to merge or overlay properties.


Enum Constant Summary
MERGE_DECLARED
          A strategy for revising events by merging properties provided by base and delta events, considering null values and non-existing (dynamic) properties as well.
MERGE_EXISTS
          A strategy for revising events by merging properties provided by base and delta events, considering only values supplied by event properties that exist.
MERGE_NON_NULL
          A strategy for revising events by merging properties provided by base and delta events, considering only non-null values.
OVERLAY_DECLARED
          A fast strategy for revising events that groups properties provided by base and delta events and overlays contributed properties to compute a revision.
 
Method Summary
static ConfigurationRevisionEventType.PropertyRevision valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationRevisionEventType.PropertyRevision[] 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

OVERLAY_DECLARED

public static final ConfigurationRevisionEventType.PropertyRevision OVERLAY_DECLARED
A fast strategy for revising events that groups properties provided by base and delta events and overlays contributed properties to compute a revision.

For use when there is a limited number of combinations of properties that change on an event, and such combinations are known in advance.

The properties available on the output revision events are all properties of the base event type. Delta event types do not add any additional properties that are not present on the base event type.

Any null values or non-existing property on a delta (or base) event results in a null values for the same property on the output revision event.


MERGE_DECLARED

public static final ConfigurationRevisionEventType.PropertyRevision MERGE_DECLARED
A strategy for revising events by merging properties provided by base and delta events, considering null values and non-existing (dynamic) properties as well.

For use when there is a limited number of combinations of properties that change on an event, and such combinations are known in advance.

The properties available on the output revision events are all properties of the base event type plus all additional properties that any of the delta event types provide.

Any null values or non-existing property on a delta (or base) event results in a null values for the same property on the output revision event.


MERGE_NON_NULL

public static final ConfigurationRevisionEventType.PropertyRevision MERGE_NON_NULL
A strategy for revising events by merging properties provided by base and delta events, considering only non-null values.

For use when there is an unlimited number of combinations of properties that change on an event, or combinations are not known in advance.

The properties available on the output revision events are all properties of the base event type plus all additional properties that any of the delta event types provide.

Null values returned by delta (or base) event properties provide no value to output revision events, i.e. null values are not merged.


MERGE_EXISTS

public static final ConfigurationRevisionEventType.PropertyRevision MERGE_EXISTS
A strategy for revising events by merging properties provided by base and delta events, considering only values supplied by event properties that exist.

For use when there is an unlimited number of combinations of properties that change on an event, or combinations are not known in advance.

The properties available on the output revision events are all properties of the base event type plus all additional properties that any of the delta event types provide.

All properties are treated as dynamic properties: If an event property does not exist on a delta event (or base) event the property provides no value to output revision events, i.e. non-existing property values are not merged.

Method Detail

values

public static ConfigurationRevisionEventType.PropertyRevision[] 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 (ConfigurationRevisionEventType.PropertyRevision c : ConfigurationRevisionEventType.PropertyRevision.values())
    System.out.println(c);

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

valueOf

public static ConfigurationRevisionEventType.PropertyRevision 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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com