Class StripedBlockUtil.VerticalRange

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

public static class StripedBlockUtil.VerticalRange extends Object
A simple utility class representing an arbitrary vertical inclusive range starting at offsetInBlock and lasting for spanInBlock bytes in an internal block. Note that VerticalRange doesn't necessarily align with StripedBlockUtil.StripingCell.
  • Field Details

    • offsetInBlock

      public long offsetInBlock
      start offset in the block group (inclusive).
    • spanInBlock

      public long spanInBlock
      length of the stripe range.
  • Constructor Details

    • VerticalRange

      public VerticalRange(long offsetInBlock, long length)
  • Method Details

    • include

      public boolean include(long pos)
      whether a position is in the range.
    • toString

      public String toString()
      Overrides:
      toString in class Object