Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CrdtMapValue

An object representing the value of a CrdtMap.

Hierarchy

  • CrdtMapValue

Implemented by

Index

Methods

counterValue

  • counterValue(key: string): number | undefined
  • reads the counter value with the given key

    Parameters

    • key: string

    Returns number | undefined

flag_dwValue

  • flag_dwValue(key: string): boolean
  • reads the flag_dw-value with the given key

    Parameters

    • key: string

    Returns boolean

flag_ewValue

  • flag_ewValue(key: string): boolean
  • reads the flag_ew-value with the given key

    Parameters

    • key: string

    Returns boolean

get

  • get(key: string, type: CRDT_type): any
  • reads the entry with the given key and type

    Parameters

    • key: string
    • type: CRDT_type

    Returns any

gmapValue

mvRegisterValue

  • mvRegisterValue(key: string): any[] | undefined
  • reads the multi-value-register value with the given key

    Parameters

    • key: string

    Returns any[] | undefined

registerValue

  • registerValue(key: string): any
  • reads the register value with the given key

    Parameters

    • key: string

    Returns any

rwsetValue

  • rwsetValue(key: string): any[] | undefined
  • reads the remove-wins-set value with the given key

    Parameters

    • key: string

    Returns any[] | undefined

setValue

  • setValue(key: string): any[] | undefined
  • reads the set value with the given key

    Parameters

    • key: string

    Returns any[] | undefined

toJsObject

  • toJsObject(): any
  • Converts this CRDTMapValue into a JavaScript object. The value of each embedded CRDT is stored under it's key.

    Warning: If there are two entries with the same keys but different types, then only one of them survives.

    Returns any

Generated using TypeDoc