Apama API Reference for .NET  9.10.0.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Apama.Event.Parser.Field< T > Class Template Reference

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...
 

Detailed Description

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:

Field<Int64> myField = FieldTypes.Sequence(FieldTypes.Integer).NewField("myField");
Template Parameters
TThe .NET type used to represent values of this field.

Constructor & Destructor Documentation

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.

Parameters
nameThe field name
typethe field type

Property Documentation

new FieldType<T> Apama.Event.Parser.Field< T >.Type
get

Get the generic FieldType of this field object.

Returns
Type of the field
Submit a bug or feature
Copyright (c) 2013-2016 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.