IBM InfoSphere Streams Version 4.1.1

SPL File types.spl

Interchangeable SPL types. SPL tuple types that can be used to interchange streams between IBM Streams applications implemented in different languages, such as SPL and Java.

SPL uses structural equivalence for types, which means that types of the same structural composition are considered identical. This means that another toolkit or application need not use these type definitions, and thus can avoid being dependent on this toolkit. For example all these streams definitions are identical:

  • stream<rstring jsonString>
  • stream<com.ibm.streamsx.json.Json>
  • stream<com.ibm.streamsx.topology.Json>

Content

Types
  • Blob: Tuple type representing binary tuples published by an application from the Java Application API.
  • Json: Tuple type for representing JSON in SPL.
  • String: Tuple type representing string tuples published by an application from the Java Application API.
  • XML: Tuple type representing XML tuples published by an application from the Java Application API.

Types

Json

Tuple type for representing JSON in SPL.

Json = rstring jsonString;

String

Tuple type representing string tuples published by an application from the Java Application API. Using this schema in an SPL application with com.ibm.streamsx.topology.topic::Publish and com.ibm.streamsx.topology.topic::Subscribe allows exchange of tuples between SPL and Java.

Any Java stream of type TStream<String> published by a Java application will have this schema.

String = rstring string;

XML

Tuple type representing XML tuples published by an application from the Java Application API. Using this schema in an SPL application with com.ibm.streamsx.topology.topic::Publish and com.ibm.streamsx.topology.topic::Subscribe allows exchange of tuples between SPL and Java.

Any Java stream of type TStream<com.ibm.streams.operator.types.XML> published by a Java application will have this schema.

XML = xml document;

Blob

Tuple type representing binary tuples published by an application from the Java Application API. Using this schema in an SPL application with com.ibm.streamsx.topology.topic::Publish and com.ibm.streamsx.topology.topic::Subscribe allows exchange of tuples between SPL and Java.

Any Java stream of type TStream<com.ibm.streams.operator.types.Blob> published by a Java application will have this schema.

Blob = blob binary;