| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.util |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| Modifier and Type | Method | Description |
|---|---|---|
static LocatedBlock |
StripedBlockUtil.constructInternalBlock(LocatedStripedBlock bg,
int idxInReturnedLocs,
int cellSize,
int dataBlkNum,
int idxInBlockGroup) |
This method creates an internal block at the given index of a block group.
|
static StripedBlockUtil.AlignedStripe[] |
StripedBlockUtil.divideByteRangeIntoStripes(ErasureCodingPolicy ecPolicy,
int cellSize,
LocatedStripedBlock blockGroup,
long rangeStartInBlockGroup,
long rangeEndInBlockGroup,
java.nio.ByteBuffer buf) |
This method divides a requested byte range into an array of inclusive
StripedBlockUtil.AlignedStripe. |
static StripedBlockUtil.AlignedStripe[] |
StripedBlockUtil.divideOneStripe(ErasureCodingPolicy ecPolicy,
int cellSize,
LocatedStripedBlock blockGroup,
long rangeStartInBlockGroup,
long rangeEndInBlockGroup,
java.nio.ByteBuffer buf) |
Similar functionality with
StripedBlockUtil.divideByteRangeIntoStripes(org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy, int, org.apache.hadoop.hdfs.protocol.LocatedStripedBlock, long, long, java.nio.ByteBuffer), but is used
by stateful read and uses ByteBuffer as reading target buffer. |
static LocatedBlock[] |
StripedBlockUtil.parseStripedBlockGroup(LocatedStripedBlock bg,
int cellSize,
int dataBlkNum,
int parityBlkNum) |
This method parses a striped block group into individual blocks.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.