Package dev.zarr.zarrjava.v2
Class Array
java.lang.Object
dev.zarr.zarrjava.core.AbstractNode
dev.zarr.zarrjava.core.Array
dev.zarr.zarrjava.v2.Array
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.zarr.zarrjava.core.Array
Array.ArrayAccessor -
Field Summary
Fields inherited from class dev.zarr.zarrjava.core.Array
codecPipelineFields inherited from class dev.zarr.zarrjava.core.AbstractNode
storeHandle -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArray(StoreHandle storeHandle, ArrayMetadata arrayMetadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic Arraycreate(StoreHandle storeHandle, ArrayMetadata arrayMetadata) Creates a new Zarr array with the provided metadata at a specified storage location.static Arraycreate(StoreHandle storeHandle, ArrayMetadata arrayMetadata, boolean existsOk) Creates a new Zarr array with the provided metadata at a specified storage location.static Arraycreate(StoreHandle storeHandle, Function<ArrayMetadataBuilder, ArrayMetadataBuilder> arrayMetadataBuilderMapper, boolean existsOk) static Arraycreate(String path, ArrayMetadata arrayMetadata) Creates a new Zarr array with the provided metadata at a specified storage location.static Arraycreate(Path path, ArrayMetadata arrayMetadata) Creates a new Zarr array with the provided metadata at a specified storage location.metadata()static ArrayMetadataBuilderstatic ArrayMetadataBuildermetadataBuilder(ArrayMetadata existingMetadata) static Arrayopen(StoreHandle storeHandle) Opens an existing Zarr array at a specified storage location.static ArrayOpens an existing Zarr array at a specified storage location.static ArrayOpens an existing Zarr array at a specified storage location.toString()
-
Constructor Details
-
Array
protected Array(StoreHandle storeHandle, ArrayMetadata arrayMetadata) throws IOException, ZarrException - Throws:
IOExceptionZarrException
-
-
Method Details
-
metadata
-
open
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 readZarrException- throws ZarrException if the Zarr array cannot be opened
-
open
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 readZarrException- throws ZarrException if the Zarr array cannot be opened
-
open
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 readZarrException- 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 arrayarrayMetadata- the metadata of the Zarr array- Throws:
IOException- if the metadata cannot be serializedZarrException- 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 arrayarrayMetadata- the metadata of the Zarr array- Throws:
IOException- if the metadata cannot be serializedZarrException- 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 arrayarrayMetadata- the metadata of the Zarr array- Throws:
IOException- if the metadata cannot be serializedZarrException- 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 arrayarrayMetadata- the metadata of the Zarr arrayexistsOk- if true, no exception is raised if the Zarr array already exists- Throws:
IOException- throws IOException if the metadata cannot be serializedZarrException- 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:
IOExceptionZarrException
-
metadataBuilder
-
metadataBuilder
-
toString
-