Package dev.zarr.zarrjava.v3
Class Group
java.lang.Object
dev.zarr.zarrjava.core.AbstractNode
dev.zarr.zarrjava.core.Group
dev.zarr.zarrjava.v3.Group
-
Field Summary
FieldsFields inherited from class dev.zarr.zarrjava.core.AbstractNode
storeHandle -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGroup(StoreHandle storeHandle, GroupMetadata groupMetadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic Groupcreate(StoreHandle storeHandle) static Groupcreate(StoreHandle storeHandle, GroupMetadata groupMetadata) static Groupcreate(StoreHandle storeHandle, Map<String, Object> attributes) static Groupstatic Groupcreate(String path, GroupMetadata groupMetadata) static Groupstatic Groupcreate(Path path, GroupMetadata groupMetadata) createArray(String key, ArrayMetadata arrayMetadata) createArray(String key, Function<ArrayMetadataBuilder, ArrayMetadataBuilder> arrayMetadataBuilderMapper) createGroup(String key) createGroup(String key, GroupMetadata groupMetadata) createGroup(String key, Map<String, Object> attributes) static Groupopen(StoreHandle storeHandle) Opens an existing Zarr array or group at a specified storage location.static GroupOpens an existing Zarr array or group at a specified storage location.static GroupOpens an existing Zarr array or group at a specified storage location.setAttributes(Map<String, Object> newAttributes) toString()Methods inherited from class dev.zarr.zarrjava.core.Group
list, listAsArray
-
Field Details
-
metadata
-
-
Constructor Details
-
Group
protected Group(@Nonnull StoreHandle storeHandle, @Nonnull GroupMetadata groupMetadata) throws IOException - Throws:
IOException
-
-
Method Details
-
open
Description copied from interface:NodeOpens an existing Zarr array or group at a specified storage location.- Parameters:
storeHandle- the storage location of the Zarr array or group- Throws:
IOException- throws IOException if the metadata cannot be read
-
open
Description copied from interface:NodeOpens an existing Zarr array or group at a specified storage location. Automatically detects the Zarr version.- Parameters:
path- the storage location of the Zarr array- Throws:
IOException- throws IOException if the metadata cannot be read
-
open
Description copied from interface:NodeOpens an existing Zarr array or group at a specified storage location. Automatically detects the Zarr version.- Parameters:
path- the storage location of the Zarr array- Throws:
IOException- throws IOException if the metadata cannot be read
-
create
public static Group create(@Nonnull StoreHandle storeHandle, @Nonnull GroupMetadata groupMetadata) throws IOException - Throws:
IOException
-
create
public static Group create(@Nonnull StoreHandle storeHandle, @Nonnull Map<String, Object> attributes) throws IOException, ZarrException- Throws:
IOExceptionZarrException
-
create
- Throws:
IOExceptionZarrException
-
create
public static Group create(Path path, GroupMetadata groupMetadata) throws IOException, ZarrException - Throws:
IOExceptionZarrException
-
create
public static Group create(String path, GroupMetadata groupMetadata) throws IOException, ZarrException - Throws:
IOExceptionZarrException
-
create
- Throws:
IOExceptionZarrException
-
create
- Throws:
IOExceptionZarrException
-
get
- Specified by:
getin classGroup- Throws:
ZarrException
-
createGroup
- Throws:
IOExceptionZarrException
-
createGroup
public Group createGroup(String key, Map<String, Object> attributes) throws IOException, ZarrException- Throws:
IOExceptionZarrException
-
createGroup
- Throws:
IOExceptionZarrException
-
createArray
- Throws:
IOExceptionZarrException
-
createArray
public Array createArray(String key, Function<ArrayMetadataBuilder, ArrayMetadataBuilder> arrayMetadataBuilderMapper) throws IOException, ZarrException- Throws:
IOExceptionZarrException
-
setAttributes
- Throws:
ZarrExceptionIOException
-
updateAttributes
public Group updateAttributes(Function<Map<String, Object>, throws ZarrException, IOExceptionMap<String, Object>> attributeMapper) - Throws:
ZarrExceptionIOException
-
toString
-