Class StripedBlockUtil.ChunkByteBuffer

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

public static class StripedBlockUtil.ChunkByteBuffer extends Object
A utility to manage ByteBuffer slices for a reader.
  • Method Details

    • addSlice

      public void addSlice(ByteBuffer buffer, int offset, int len)
    • getSlice

      public ByteBuffer getSlice(int i)
    • getSlices

      public List<ByteBuffer> getSlices()
    • copyTo

      public void copyTo(ByteBuffer target)
      Note: target will be ready-to-read state after the call.
    • copyFrom

      public void copyFrom(ByteBuffer src)