Package com.bc.zarr
Class ZarrArray
- java.lang.Object
-
- com.bc.zarr.ZarrArray
-
public class ZarrArray extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZarrArraycreate(ArrayParams arrayParams)static ZarrArraycreate(ArrayParams arrayParams, Map<String,Object> attributes)static ZarrArraycreate(Store store, ArrayParams params)static ZarrArraycreate(Store store, ArrayParams params, Map<String,Object> attributes)static ZarrArraycreate(com.bc.zarr.ZarrPath relativePath, Store store, ArrayParams params)static ZarrArraycreate(com.bc.zarr.ZarrPath relativePath, Store store, ArrayParams arrayParams, Map<String,Object> attributes)static ZarrArraycreate(String path, ArrayParams params)static ZarrArraycreate(String path, ArrayParams params, Map<String,Object> attributes)static ZarrArraycreate(Path fsPath, ArrayParams params)static ZarrArraycreate(Path fsPath, ArrayParams params, Map<String,Object> attributes)Map<String,Object>getAttributes()ByteOrdergetByteOrder()int[]getChunks()CompressorgetCompressor()DataTypegetDataType()DimensionSeparatorgetDimensionSeparator()NumbergetFillValue()int[]getShape()static ZarrArrayopen(Store store)static ZarrArrayopen(com.bc.zarr.ZarrPath relativePath, Store store)static ZarrArrayopen(String path)static ZarrArrayopen(Path fileSystemPath)Objectread()Objectread(int[] shape)Objectread(int[] shape, int[] offset)voidread(Object buffer, int[] bufferShape)voidread(Object buffer, int[] bufferShape, int[] offset)StringtoString()voidwrite(Number value)voidwrite(Number value, int[] shape, int[] offset)voidwrite(Object data, int[] dataShape, int[] offset)voidwriteAttributes(Map<String,Object> attributes)
-
-
-
Method Detail
-
open
public static ZarrArray open(String path) throws IOException
- Throws:
IOException
-
open
public static ZarrArray open(Path fileSystemPath) throws IOException
- Throws:
IOException
-
open
public static ZarrArray open(Store store) throws IOException
- Throws:
IOException
-
open
public static ZarrArray open(com.bc.zarr.ZarrPath relativePath, Store store) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(ArrayParams arrayParams) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(ArrayParams arrayParams, Map<String,Object> attributes) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(String path, ArrayParams params) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(String path, ArrayParams params, Map<String,Object> attributes) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(Path fsPath, ArrayParams params) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(Path fsPath, ArrayParams params, Map<String,Object> attributes) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(Store store, ArrayParams params) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(Store store, ArrayParams params, Map<String,Object> attributes) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(com.bc.zarr.ZarrPath relativePath, Store store, ArrayParams params) throws IOException
- Throws:
IOException
-
create
public static ZarrArray create(com.bc.zarr.ZarrPath relativePath, Store store, ArrayParams arrayParams, Map<String,Object> attributes) throws IOException
- Throws:
IOException
-
getCompressor
public Compressor getCompressor()
-
getDataType
public DataType getDataType()
-
getShape
public int[] getShape()
-
getChunks
public int[] getChunks()
-
getFillValue
public Number getFillValue()
-
getByteOrder
public ByteOrder getByteOrder()
-
getDimensionSeparator
public DimensionSeparator getDimensionSeparator()
-
write
public void write(Number value) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
write
public void write(Number value, int[] shape, int[] offset) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
write
public void write(Object data, int[] dataShape, int[] offset) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
read
public Object read() throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
read
public Object read(int[] shape) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
read
public Object read(int[] shape, int[] offset) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
read
public void read(Object buffer, int[] bufferShape) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
read
public void read(Object buffer, int[] bufferShape, int[] offset) throws IOException, ucar.ma2.InvalidRangeException
- Throws:
IOExceptionucar.ma2.InvalidRangeException
-
writeAttributes
public void writeAttributes(Map<String,Object> attributes) throws IOException
- Throws:
IOException
-
getAttributes
public Map<String,Object> getAttributes() throws IOException
- Throws:
IOException
-
-