|
27 | 27 |
|
28 | 28 | /**
|
29 | 29 | * CellChunkMap is an array of serialized representations of Cell (pointing to Chunks with full Cell
|
30 |
| - * data) and can be allocated both off-heap and on-heap. CellChunkMap is a byte array (chunk) |
31 |
| - * holding all that is needed to access a Cell, which is actually saved on another deeper chunk. Per |
32 |
| - * Cell we have a reference to this deeper byte array B (chunk ID, integer), offset in bytes in B |
33 |
| - * (integer), length in bytes in B (integer) and seqID of the cell (long). In order to save |
34 |
| - * reference to byte array we use the Chunk's ID given by ChunkCreator. The CellChunkMap memory |
35 |
| - * layout on chunk A relevant to a deeper byte array B, holding the actual cell data: < header > |
36 |
| - * <--------------- first Cell -----------------> <-- second Cell ... |
| 30 | + * data) and can be allocated both off-heap and on-heap. |
| 31 | + * <p> |
| 32 | + * CellChunkMap is a byte array (chunk) holding all that is needed to access a Cell, which is |
| 33 | + * actually saved on another deeper chunk. Per Cell we have a reference to this deeper byte array B |
| 34 | + * (chunk ID, integer), offset in bytes in B (integer), length in bytes in B (integer) and seqID of |
| 35 | + * the cell (long). In order to save reference to byte array we use the Chunk's ID given by |
| 36 | + * ChunkCreator. |
| 37 | + * <p> |
| 38 | + * The CellChunkMap memory layout on chunk A relevant to a deeper byte array B, holding the actual |
| 39 | + * cell data: |
| 40 | + * |
| 41 | + * <pre> |
| 42 | + * |
| 43 | + * < header > <--------------- first Cell -----------------> <-- second Cell ... |
37 | 44 | * --------------------------------------------------------------------------------------- ...
|
38 |
| - * integer | integer | integer | integer | long | 4 bytes | 4 bytes | 4 bytes | 4 bytes | 8 bytes | |
39 |
| - * ChunkID | chunkID of | offset in B | length of | sequence | ... of this | chunk B with | where |
40 |
| - * Cell's | Cell's | ID of | chunk A | Cell data | data starts | data in B | the Cell | |
| 45 | + * integer | integer | integer | integer | long | |
| 46 | + * 4 bytes | 4 bytes | 4 bytes | 4 bytes | 8 bytes | |
| 47 | + * ChunkID | chunkID of | offset in B | length of | sequence | ... |
| 48 | + * of this | chunk B with | where Cell's | Cell's | ID of | |
| 49 | + * chunk A | Cell data | data starts | data in B | the Cell | |
41 | 50 | * --------------------------------------------------------------------------------------- ...
|
| 51 | + * </pre> |
42 | 52 | */
|
43 | 53 | @InterfaceAudience.Private
|
44 | 54 | public class CellChunkMap extends CellFlatMap {
|
@@ -71,7 +81,7 @@ public CellChunkMap(Comparator<? super Cell> comparator, Chunk[] chunks, int min
|
71 | 81 | }
|
72 | 82 | }
|
73 | 83 |
|
74 |
| - /* |
| 84 | + /** |
75 | 85 | * To be used by base (CellFlatMap) class only to create a sub-CellFlatMap Should be used only to
|
76 | 86 | * create only CellChunkMap from CellChunkMap
|
77 | 87 | */
|
|
0 commit comments