Attributes
Last updated
Last updated
Within Cortex, Attributes play a pivotal role in defining and structuring the data within Streams. Each Stream is characterized by its unique set of Attributes, which delineate the data's structure, ensuring consistency and clarity in Applications
Attributes are the elemental pieces of data that mark the specifics of each event, such as timestamps, identifiers, and other critical data points, making them essential for detailed data analysis and manipulation.
e.g. In Room Temperatures Stream; there is four Attributes as RoomNo, FloorNo, Room Temperature, Thermostat.
As data flows into and out of Cortex through Source Nodes and Sink Nodes, it's crucial that the Attributes of these streams align with the external schemas of the incoming and outgoing connections.
This alignment is achieved through Mappings, which adapt the stream's Attributes to fit the schema requirements of both Source Nodes and Sink Nodes
Such mappings ensure that as streams transition into and out of Cortex, their Attributes are correctly interpreted and utilized, preserving data integrity and coherence.
Within the Cortex environment, users have the flexibility to create new Attributes based on existing ones, utilizing various nodes within the Buffer Nodes cluster.
Stream, Table, Window, and Aggregation Nodes act as Event Buffers, where Attributes can not only be created but also transmitted to subsequent Nodes for further processing.
This capability allows for the dynamic manipulation and enrichment of data as it moves through Cortex.
In Buffer Nodes, when modifying Attributes in these contexts, there's no need for explicit Mappingsfor each Node.
Importantly, Cortex is designed to automatically manage schemas across each Stream, Table, Window, and Aggregation Node, simplifying the data handling process and ensuring seamless attribute transformation and integration within Applications.