Apama API Reference for .NET
10.3.1.5
|
Represents the name and type of a field in an EventType. More...
Inherits Apama.Event.Parser.Field.
Public Member Functions | |
Field (string name, FieldType< T > type) | |
Creates a new field. More... | |
Public Member Functions inherited from Apama.Event.Parser.Field | |
Field (string name, FieldType type) | |
Creates a new field. More... | |
override string | 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. More... | |
Properties | |
new FieldType< T > | Type [get] |
Get the generic FieldType of this field object. More... | |
Properties inherited from Apama.Event.Parser.Field | |
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... | |
Represents the name and type of a field in an EventType.
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. |
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 |
|
get |
Get the generic FieldType of this field object.