Class StripedBlockUtil.StripingCell

java.lang.Object
org.apache.hadoop.hdfs.util.StripedBlockUtil.StripingCell
Enclosing class:
StripedBlockUtil

@VisibleForTesting public static class StripedBlockUtil.StripingCell extends Object
Cell is the unit of encoding used in DFSStripedOutputStream. This size impacts how a logical offset in the file or block group translates to physical byte offset in a stored internal block. The StripingCell util class facilitates this calculation. Each StripingCell is inclusive with its start and end offsets -- e.g., the end logical offset of cell_0_0_0 should be 1 byte lower than the start logical offset of cell_1_0_1. A StripingCell is a special instance of StripedBlockUtil.StripingChunk whose offset and size align with the cell used when writing data. TODO: consider parity cells