LogoLogo
  • Internet Object 1.0
  • Internet Object
    • Abstract
    • The Poetic Principles of Internet Object
    • Objectives
    • Introducing Internet Object
  • The Structure
    • Internet Object Document
      • Header
      • Data Sections
    • Structural Elements
      • Structural Characters and Literals
      • Literals
      • Other Special Characters
      • Whitespaces
    • Values Representations
      • Objects
      • Arrays
      • Strings
        • Open Strings
        • Regular Strings
        • Raw Strings
      • Numeric Values
        • Number
        • BigInt
        • Decimal
        • Special Numeric Integer Formats
          • Hexadecimal
          • Octal
          • Binary
        • NaN and Infinity
      • Binary
      • Date and Time
      • Booleans
      • Nulls
    • Comments
    • Encoding
  • The Collections
    • Collection
    • Creating Collection
    • Collection Rules
    • Data Streaming
  • The Definitions
    • Definitions
    • Variables
    • Complex Schema
  • Schema Definition Language
    • Internet Object Schema
    • The structure
    • Data Types
      • Any
      • String
        • String Derived Types
          • Email
          • URL
          • Date
          • Time
          • DateTime
      • Number
        • Derived Types
          • int
          • byte
          • int16
          • int32
      • Object
      • Array
      • Bool
    • Dynamic Schema
    • Is Object, a MemberDef or a Schema?
  • Other
    • Best Practices
    • FAQs
    • Contributors
    • License
Powered by GitBook
On this page
  • Benefits
  • Collection Structure

Was this helpful?

Edit on GitHub
Export as PDF
  1. The Collections

Collection

PreviousEncodingNextCreating Collection

Last updated 10 months ago

Was this helpful?

A Collection is a record aggregator that allows sending multiple records over the internet without repetitively defining a key-value pair. The Collection embeds more than one independent record in the 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 Collection Structure

Whitespaces surrounding the tokens, keys, and values are optional.

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}