Class FragmentEventType

java.lang.Object
com.espertech.esper.common.client.FragmentEventType

public class FragmentEventType extends Object
Provides an event type for a property of an event.

A fragment is a property value that is itself an event, or that can be represented as an event. Thereby a fragment comes with event type metadata and means of querying the fragment's properties.

A array or collection of property values that is an array of events or that can be represented as an array of events has the indexed flag set.

A map of property values that is an map of events or that can be represented as a map of events has the mapped flag set.

  • Constructor Details

    • FragmentEventType

      public FragmentEventType(EventType fragmentType, boolean indexed, boolean isNative, boolean canInsertEventBean)
      Ctor.
      Parameters:
      fragmentType - the event type for a property value for an event.
      indexed - true to indicate that property value is an array of events
      isNative - true
      canInsertEventBean - whether the fragment can hold EventBean instances or only native objects
  • Method Details

    • isIndexed

      public boolean isIndexed()
      Returns true if the fragment type is an array.

      If a property value is an array and thereby a fragment array, this flag is set to true.

      Returns:
      indicator if array fragment
    • getFragmentType

      public EventType getFragmentType()
      Returns the type of the fragment.
      Returns:
      fragment type
    • isNative

      public boolean isNative()
      Returns true if the fragment is a native representation, i.e. a Java class.
      Returns:
      indicator whether fragment is a Class.
    • isCanInsertEventBean

      public boolean isCanInsertEventBean()