Package dev.zarr.zarrjava.v2
Class Array
java.lang.Object
dev.zarr.zarrjava.v2.Array
- All Implemented Interfaces:
Array
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.zarr.zarrjava.core.Array
Array.ArrayAccessor -
Field Summary
Fields -
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 com.fasterxml.jackson.databind.ObjectMappermetadata()static ArrayMetadataBuilderstatic ArrayMetadataBuildermetadataBuilder(ArrayMetadata existingMetadata) static Arrayopen(StoreHandle storeHandle) Opens an existing Zarr array at a specified storage location.toString()
-
Field Details
-
metadata
-
storeHandle
-
-
Constructor Details
-
Array
protected Array(StoreHandle storeHandle, ArrayMetadata arrayMetadata) throws IOException, ZarrException - Throws:
IOExceptionZarrException
-
-
Method Details
-
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
-
makeObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper makeObjectMapper() -
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
-
metadata
-
storeHandle
- Specified by:
storeHandlein interfaceArray
-
codecPipeline
- Specified by:
codecPipelinein interfaceArray
-