Skip to content

Commit 6973a39

Browse files
committed
doc: Nesting class
1 parent 67a2ea1 commit 6973a39

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

src/main/java/org/janelia/saalfeldlab/n5/shard/Nesting.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,43 @@
3232
import java.util.Arrays;
3333
import java.util.Objects;
3434

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+
*/
3566
public class Nesting {
3667

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+
*/
3772
public static class NestedPosition implements Comparable<NestedPosition> {
3873

3974
private final NestedGrid grid;

0 commit comments

Comments
 (0)