Collection
A Collection is a structure that groups multiple records together, allowing you to send several records over the internet without repeatedly specifying key-value pairs. Each Collection can contain multiple independent records within a single IO document.
Benefits
Collection reduces the complexity of defining key**-**value pairs every time a record is sent over the internet. Thus, simplify application development by offering data parallelism and operational simplicity.
The collection permits an internet object document to have multiple records with different types and structures independent of each other.
Collection Structure
The Collection must be represented with the tidal sign (~ U+007E)
followed by the object and separated by the whitespace as shown in the Collection structure.
The tidal sign enables the parser to identify the next record. Here is a code snippet that shows how to represent a collection.
# Representing a collection in the Internet Object document
~ Id, empName, age, department, Address
---
# Following records represents Collection
~ 101, Thomas, 25, HR, {Bond Street, New York, NY}
~ 102, George, 30, Sales, {Duke Street, New York, NY}
Last updated
Was this helpful?