Class Array

All Implemented Interfaces:
Node, Node

public class Array extends Array implements Node
  • Constructor Details

  • Method Details

    • metadata

      public ArrayMetadata metadata()
      Specified by:
      metadata in class Array
    • open

      public static Array open(StoreHandle storeHandle) throws IOException, ZarrException
      Opens an existing Zarr array at a specified storage location.
      Parameters:
      storeHandle - the storage location of the Zarr array
      Throws:
      IOException - throws IOException if the metadata cannot be read
      ZarrException - throws ZarrException if the Zarr array cannot be opened
    • open

      public static Array open(Path path) throws IOException, ZarrException
      Opens an existing Zarr array at a specified storage location.
      Parameters:
      path - the storage location of the Zarr array
      Throws:
      IOException - throws IOException if the metadata cannot be read
      ZarrException - throws ZarrException if the Zarr array cannot be opened
    • open

      public static Array open(String path) throws IOException, ZarrException
      Opens an existing Zarr array at a specified storage location.
      Parameters:
      path - the storage location of the Zarr array
      Throws:
      IOException - throws IOException if the metadata cannot be read
      ZarrException - throws ZarrException if the Zarr array cannot be opened
    • create

      public static Array create(Path path, ArrayMetadata arrayMetadata) throws IOException, ZarrException
      Creates a new Zarr array with the provided metadata at a specified storage location. This method will raise an exception if a Zarr array already exists at the specified storage location.
      Parameters:
      path - the storage location of the Zarr array
      arrayMetadata - the metadata of the Zarr array
      Throws:
      IOException - if the metadata cannot be serialized
      ZarrException - if the Zarr array cannot be created
    • create

      public static Array create(String path, ArrayMetadata arrayMetadata) throws IOException, ZarrException
      Creates a new Zarr array with the provided metadata at a specified storage location. This method will raise an exception if a Zarr array already exists at the specified storage location.
      Parameters:
      path - the storage location of the Zarr array
      arrayMetadata - the metadata of the Zarr array
      Throws:
      IOException - if the metadata cannot be serialized
      ZarrException - if the Zarr array cannot be created
    • create

      public static Array create(StoreHandle storeHandle, ArrayMetadata arrayMetadata) throws IOException, ZarrException
      Creates a new Zarr array with the provided metadata at a specified storage location. This method will raise an exception if a Zarr array already exists at the specified storage location.
      Parameters:
      storeHandle - the storage location of the Zarr array
      arrayMetadata - the metadata of the Zarr array
      Throws:
      IOException - if the metadata cannot be serialized
      ZarrException - if the Zarr array cannot be created
    • create

      public static Array create(StoreHandle storeHandle, ArrayMetadata arrayMetadata, boolean existsOk) throws IOException, ZarrException
      Creates a new Zarr array with the provided metadata at a specified storage location. If `existsOk` is false, this method will raise an exception if a Zarr array already exists at the specified storage location.
      Parameters:
      storeHandle - the storage location of the Zarr array
      arrayMetadata - the metadata of the Zarr array
      existsOk - if true, no exception is raised if the Zarr array already exists
      Throws:
      IOException - throws IOException if the metadata cannot be serialized
      ZarrException - throws ZarrException if the Zarr array cannot be created
    • create

      public static Array create(StoreHandle storeHandle, Function<ArrayMetadataBuilder,ArrayMetadataBuilder> arrayMetadataBuilderMapper, boolean existsOk) throws IOException, ZarrException
      Throws:
      IOException
      ZarrException
    • metadataBuilder

      @Nonnull public static ArrayMetadataBuilder metadataBuilder()
    • metadataBuilder

      @Nonnull public static ArrayMetadataBuilder metadataBuilder(ArrayMetadata existingMetadata)
    • toString

      public String toString()
      Overrides:
      toString in class Object