com.espertech.esper.client
Class FragmentEventType

java.lang.Object
  extended by com.espertech.esper.client.FragmentEventType

public class FragmentEventType
extends java.lang.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 Summary
FragmentEventType(EventType fragmentType, boolean indexed, boolean isNative)
          Ctor.
 
Method Summary
 EventType getFragmentType()
          Returns the type of the fragment.
 boolean isIndexed()
          Returns true if the fragment type is an array.
 boolean isNative()
          Returns true if the fragment is a native representation, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentEventType

public FragmentEventType(EventType fragmentType,
                         boolean indexed,
                         boolean isNative)
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
Method Detail

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.

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