com.espertech.esper.event.vaevent
Class RevisionSpec

java.lang.Object
  extended by com.espertech.esper.event.vaevent.RevisionSpec

public class RevisionSpec
extends java.lang.Object

Specification for how to build a revision event type.

Compiled from the information provided via configuration, which has already been validated before building this specification.


Constructor Summary
RevisionSpec(ConfigurationRevisionEventType.PropertyRevision propertyRevision, EventType baseEventType, EventType[] deltaTypes, java.lang.String[] deltaNames, java.lang.String[] keyPropertyNames, java.lang.String[] changesetPropertyNames, java.lang.String[] baseEventOnlyPropertyNames, boolean deltaTypesAddProperties, boolean[] changesetPropertyDeltaContributed)
          Ctor.
 
Method Summary
 java.lang.String[] getBaseEventOnlyPropertyNames()
          Returns the properies only found on the base event.
 EventType getBaseEventType()
          Returns the base event type.
 boolean[] getChangesetPropertyDeltaContributed()
          Flag for each changeset property to indicate if only the delta contributes the property.
 java.lang.String[] getChangesetPropertyNames()
          Returns property names of properties that change by deltas
 java.lang.String[] getDeltaNames()
          Returns names for delta events.
 EventType[] getDeltaTypes()
          Returns the delta event types.
 java.lang.String[] getKeyPropertyNames()
          Returns property names for key properties.
 ConfigurationRevisionEventType.PropertyRevision getPropertyRevision()
          Returns the stratgegy for revisioning.
 boolean isDeltaTypesAddProperties()
          Returns true if delta types add properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionSpec

public RevisionSpec(ConfigurationRevisionEventType.PropertyRevision propertyRevision,
                    EventType baseEventType,
                    EventType[] deltaTypes,
                    java.lang.String[] deltaNames,
                    java.lang.String[] keyPropertyNames,
                    java.lang.String[] changesetPropertyNames,
                    java.lang.String[] baseEventOnlyPropertyNames,
                    boolean deltaTypesAddProperties,
                    boolean[] changesetPropertyDeltaContributed)
Ctor.

Parameters:
propertyRevision - strategy to use
baseEventType - base type
deltaTypes - delta types
deltaNames - names of delta types
keyPropertyNames - names of key properties
changesetPropertyNames - names of properties that change
baseEventOnlyPropertyNames - properties only available on the base event
deltaTypesAddProperties - boolean to indicate delta types add additional properties.
changesetPropertyDeltaContributed - flag for each property indicating whether its contributed only by a delta event
Method Detail

getChangesetPropertyDeltaContributed

public boolean[] getChangesetPropertyDeltaContributed()
Flag for each changeset property to indicate if only the delta contributes the property.

Returns:
flag per property

getPropertyRevision

public ConfigurationRevisionEventType.PropertyRevision getPropertyRevision()
Returns the stratgegy for revisioning.

Returns:
enum

getBaseEventType

public EventType getBaseEventType()
Returns the base event type.

Returns:
base type

getDeltaTypes

public EventType[] getDeltaTypes()
Returns the delta event types.

Returns:
types

getDeltaNames

public java.lang.String[] getDeltaNames()
Returns names for delta events.

Returns:
event type names for delta events

getKeyPropertyNames

public java.lang.String[] getKeyPropertyNames()
Returns property names for key properties.

Returns:
property names

getChangesetPropertyNames

public java.lang.String[] getChangesetPropertyNames()
Returns property names of properties that change by deltas

Returns:
prop names

getBaseEventOnlyPropertyNames

public java.lang.String[] getBaseEventOnlyPropertyNames()
Returns the properies only found on the base event.

Returns:
base props

isDeltaTypesAddProperties

public boolean isDeltaTypesAddProperties()
Returns true if delta types add properties.

Returns:
flag indicating if delta event types add properties

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