|
32 | 32 | import java.util.Arrays; |
33 | 33 | import java.util.Objects; |
34 | 34 |
|
| 35 | +/** |
| 36 | + * Container for classes that coordinate hierarchical grid structures for |
| 37 | + * sharded N5 datasets. |
| 38 | + * <p> |
| 39 | + * This class provides classes for representing and navigating nested/sharded |
| 40 | + * dataset layouts for the N5 API. In a sharded dataset, data blocks are grouped |
| 41 | + * into higher-level containers called shards, which can themselves be nested |
| 42 | + * within parent shards, creating a multi-level hierarchy. |
| 43 | + * <p> |
| 44 | + * <b>Nesting levels:</b> <ul |
| 45 | + * <li><b>Level 0:</b> The finest granularity - individual data blocks |
| 46 | + * containing actual pixel data |
| 47 | + * <li><b>Level 1:</b> First-level shards, which contain multiple level-0 data |
| 48 | + * blocks |
| 49 | + * <li><b>Level 2+:</b> Higher-level shards (if they exist), which contain |
| 50 | + * multiple lower-level shards |
| 51 | + * <li><b>Nesting depth:</b> The total number of hierarchical levels in the |
| 52 | + * structure |
| 53 | + * </ul> |
| 54 | + * <p> |
| 55 | + * <b>Contained Classes:</b> |
| 56 | + * <ul> |
| 57 | + * <li>{@link NestedGrid} - Defines the hierarchical grid structure with block |
| 58 | + * sizes at each nesting level. This is the grid "schema" that describes how the |
| 59 | + * hierarchy is organized. |
| 60 | + * <li>{@link NestedPosition} - Represents a specific position within a |
| 61 | + * {@code NestedGrid} at a particular nesting level, providing coordinate |
| 62 | + * transformations between levels. |
| 63 | + * </ul> |
| 64 | + * |
| 65 | + */ |
35 | 66 | public class Nesting { |
36 | 67 |
|
| 68 | + /** |
| 69 | + * Represents the position of a block at a particular level of a nested hierarchy, |
| 70 | + * where the hierarchy is defined by a given {@link NestedGrid}. |
| 71 | + */ |
37 | 72 | public static class NestedPosition implements Comparable<NestedPosition> { |
38 | 73 |
|
39 | 74 | private final NestedGrid grid; |
|
0 commit comments