Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SchemaImpl

Implementation of ConcreteSchema which extends the Record V2 Schema interface

Hierarchy

  • SchemaImpl

Implements

  • any

Index

Constructors

constructor

  • Create a new Schema

    Parameters

    • recordV2Constructor: object

      a constructor function for creating RecordV2 implementations

    • records: RecordImpl[]

      an array of record schema

    Returns SchemaImpl

Properties

Private recordV2Constructor

recordV2Constructor: object

A constructor function for creating RecordV2 implementations

Type declaration

Private recordsArray

recordsArray: RecordImpl[]

The array of record schema

Private recordsMap

recordsMap: object

The record schema indexed by name

Type declaration

Methods

asJSON

  • asJSON(): string
  • inheritdoc

    Returns string

createModel

  • inheritdoc

    Returns RecordData[]

createMutableModel

firstRecord

  • inheritdoc

    Returns RecordImpl

getRecord

  • inheritdoc

    Parameters

    • name: string

    Returns RecordImpl

getRecords

  • inheritdoc

    Returns RecordImpl[]

lastRecord

  • inheritdoc

    Returns RecordImpl

records

  • inheritdoc

    Returns RecordImpl[]

toString

  • toString(): string
  • Convert the schema to a string

    Returns string

    a string representation of the schema