The WSDL document defines XSD types (data types). IEP data types, as observable and editable from the property editor for a specific operator, have their counterparts in XSD data types.
For each operator, IEP generates two XSD elements: a regular message object and a batch message object.
Each XSD element contains the following:
Operator name
Attribute name for each attribute in the attribute list
XSD data type
Attributes have specific data types and have their equivalent representation in the XSD.
IEP Data Type |
XSD Data Type |
---|---|
INTEGER |
int |
BIGINT |
long |
DOUBLE |
double |
VARCHAR |
string |
DATE |
date |
TIMESTAMP |
dateTime |
The following types are based on a simple event process that contains a Stream Input operator and a Stream Output operator.
<types> <xsd:schema targetNamespace="MyEventProcessor_iep" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="MyStreamInput_MsgObj"> <xsd:complexType> <xsd:sequence> <xsd:element name="AttrInteger" type="xsd:int"/> <xsd:element name="AttrBigInt" type="xsd:long"/> <xsd:element name="AttrDouble" type="xsd:double"/> <xsd:element name="AttrVarchar" type="xsd:string"/> <xsd:element name="AttrDate" type="xsd:date"/> <xsd:element name="AttrTimestamp" type="xsd:dateTime"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="MyStreamInputBatch_MsgObj"> <xsd:complexType> <xsd:sequence> <xsd:element name="MyStreamInput_MsgObj" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="AttrInteger" type="xsd:int"/> <xsd:element name="AttrBigInt" type="xsd:long"/> <xsd:element name="AttrDouble" type="xsd:double"/> <xsd:element name="AttrVarchar" type="xsd:string"/> <xsd:element name="AttrDate" type="xsd:date"/> <xsd:element name="AttrTimestamp" type="xsd:dateTime"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="StreamOutput0_MsgObj"> <xsd:complexType> <xsd:sequence> <xsd:element name="AttrInteger" type="xsd:int"/> <xsd:element name="AttrBigInt" type="xsd:long"/> <xsd:element name="AttrDouble" type="xsd:double"/> <xsd:element name="AttrVarchar" type="xsd:string"/> <xsd:element name="AttrDate" type="xsd:date"/> <xsd:element name="AttrTimestamp" type="xsd:dateTime"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </types> |