Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RecordV2Builder

Builds free format RecordV2 value.

This type of builder may be used to generate free format RecordV2 data which is not constrained by a Schema.

A builder can be created using RecordV2DataType.valueBuilder.

since

6.0

Hierarchy

  • RecordV2Builder

Index

Methods

addFields

  • Adds one or more field values.

    If there is a current record, this adds the fields to the end of the current record.

    Parameters

    • fields: string[]

    Returns RecordV2Builder

    this builder

  • Parameters

    • Rest ...fields: string[]

    Returns RecordV2Builder

addRecord

  • Adds a new record comprising the specified field values.

    Parameters

    • fields: string[]

      the fields within the new record. If no fields are supplied, an empty record will be added.

    Returns RecordV2Builder

    this builder

  • Parameters

    • Rest ...fields: string[]

    Returns RecordV2Builder

build

  • Builds a RecordV2 object from the current builder state.

    Returns RecordV2

    a new RecordV2 object

clear

  • clear(): void
  • Clears all current values from the builder allowing it to be reused to generate new data.

    Returns void

    this builder