![]() |
Apama API Reference for .NET
10.7.2.0
|
Represents the name and type of a field in an EventType. More...
Inherits Field.
Public Member Functions | |
Field (string name, FieldType< T > type) | |
Creates a new field. More... | |
Field (string name, FieldType type) | |
Creates a new field. More... | |
override string | ToString () |
Returns a string representation of the event type. Note that this More... | |
Properties | |
virtual string | Name [get] |
Method to return the name of the field object More... | |
virtual FieldType | Type [get] |
Method to return the FieldType of the field object More... | |
new FieldType< T > | Type [get] |
Get the generic FieldType of this field object. More... | |
Represents the name and type of a field in an EventType.
Non-generic class holding the name and type of a field in an EventType (with reduced compile-time type safety compared to generic Field<T> class).
Note that the easiest way to create instances of this generic Field object is to use FieldTypes to get a FieldType object then call the FieldType<T>.NewField(string) helper method to create the Field.
Almost all new applications are recommended to use this class, instead of the legacy non-generic Field class.
The following example shows how it is possible to create a field object whose type is an Apama sequence of integers:
T | The .NET type used to represent values of this field. |
For most applications, it is better to use the generic Field<T> class instead of this one, unless there is a specific requirement to process fields from Event objects without access to the corresponding generic FieldType<T> object.
Apama.Event.Parser.Field< T >.Field | ( | string | name, |
FieldType< T > | type | ||
) |
Creates a new field.
Consider using FieldType<T>.NewField(string) instead of calling this method.
name | The field name |
type | the field type |
Apama.Event.Parser.Field< T >.Field | ( | string | name, |
FieldType | type | ||
) |
Creates a new field.
name | The field name |
type | the field type |
override string Apama.Event.Parser.Field< T >.ToString | ( | ) |
Returns a string representation of the event type. Note that this
representation will use the .NET ToString() method to format the results, and is not valid monitorscript.
|
get |
Method to return the name of the field object
|
get |
Method to return the FieldType of the field object
|
get |
Get the generic FieldType of this field object.