Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RecordV2DataTypeImpl

A data type for RecordV2 values

Hierarchy

  • any
    • RecordV2DataTypeImpl

Implements

Index

Constructors

constructor

  • Create a new RecordV2DataTypeImpl instance

    Parameters

    • Default value validator: function = defaultValidator

      a validator for validating RecordV2 instances

    Returns RecordV2DataTypeImpl

Properties

RecordV2

RecordV2: any = RecordV2Impl

The implementation of the underlying value type

Private validator

validator: function

A validator for validating RecordV2 instances.

param

the record to validate

throws

an error if the value is not valid

Type declaration

Methods

from

  • Create a new RecordV2 instance from data

    Parameters

    Returns RecordV2Impl

    a new RecordV2 instance

parseSchema

  • Parse a JSON string into a RecordV2 schema

    parame

    the schema parsed from the JSON string

    Parameters

    • json: string

      the JSON string

    Returns SchemaImpl

schemaBuilder

validate

  • Validate a RecordV2 object

    inheritdoc

    Parameters

    Returns void

valueBuilder

withSchema

  • Create a new RecordV2DataTypeImpl with a schema.

    Parameters

    • schema: Schema

      the schema to validate against

    Returns RecordV2DataTypeImpl

    a new RecordV2 Data Type