Class PairSet

Hierarchy (View Summary)

Properties

address: Muid
behavior: Behavior
database: Database
DELETION: Deletion = ...
globalPropertyMuid: { medallion: number; offset: Behavior; timestamp: number } = ...
INCLUSION: Inclusion = ...

Accessors

Methods

  • All of the pairs in the Pair Set as a set

    Parameters

    • OptionalasOf: AsOf

      optional timestamp to look back to

    Returns Promise<Set<Muid[]>>

    a promise that resolves to a set of pairs [Muid, Muid]

  • Reset this Container to a previous time. If no time is specified, the container will be cleared.

    Parameters

    • OptionaltoTime: AsOf
    • Optionalrecurse: any
    • Optionalmeta: Meta

    Returns Promise<void>

    toTime Optional time to reset to. If absent, the container will be cleared.

    recurse Recursively reset all child containers held by this container at reset time?

    meta Metadata to be used in the reset.

  • Reset the properties associated with this container to a previous time.

    Parameters

    • OptionaltoTime: AsOf

      optional timestamp to reset to. If not provided, the properties will be deleted.

    • Optionalmeta: Meta

    Returns Promise<void>

  • The number of items in the pair set.

    Parameters

    • OptionalasOf: AsOf

      optional timestamp to look back to

    Returns Promise<number>

    a promise that resolves to the number of entries

  • Generates a JSON representation of the data in the pair set. Mostly intended for demo/debug purposes.

    Parameters

    • indent: number | boolean = false

      true to pretty print (not yet implemented)

    • OptionalasOf: AsOf

      optional timestamp to look back to

    • Optionalseen: Set<string>

      (internal use only! This prevents cycles from breaking things)

    Returns Promise<string>

    a JSON string