package zarr

  1. Overview
  2. Docs

Module Node.ArrayNodeSource

Sourcetype t

The type of an array node.

Sourceval create : GroupNode.t -> string -> t

create p n returns an array node with parent p and name n.

  • raises Failure

    if node invariants are not satisfied.

Sourceval (/) : GroupNode.t -> string -> t

The infix operator alias of ArrayNode.create

Sourceval root : t

creates an array root node

Sourceval of_path : string -> t

of_path s returns an array node from string s.

  • raises Failure

    if node invariants are not satisfied.

Sourceval to_path : t -> string

to_path n returns array node n as a string path.

Sourceval name : t -> string

name n returns the name of array node n.

Sourceval parent : t -> GroupNode.t option

parent n returns Some p where p is the parent group node of n or None if node n is a root node.

Sourceval (=) : t -> t -> bool

x = y returns true if nodes x and y are equal, and false otherwise.

Sourceval ancestors : t -> GroupNode.t list

ancestors n returns ancestor group nodes of n.

Sourceval is_parent : t -> GroupNode.t -> bool

is_parent n g returns true if group node g is the immediate parent of array node n and false otherwise.

Sourceval to_key : t -> string

to_key n converts a node's path to a key, as defined in the Zarr V3 specification.

Sourceval to_metakey : t -> string

to_prefix n returns the metadata key associated with node n, as defined in the Zarr V3 specification.

Sourceval show : t -> string

show n returns a string representation of a node type.

Sourceval pp : Format.formatter -> t -> unit

pp fmt t pretty prints a node type value.

OCaml

Innovation. Community. Security.