@Private
public class BlockGrouper
extends java.lang.Object
| Constructor | Description |
|---|---|
BlockGrouper() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
anyRecoverable(ECBlockGroup blockGroup) |
Given a BlockGroup, tell if any of the missing blocks can be recovered,
to be called by ECManager
|
int |
getRequiredNumDataBlocks() |
Get required data blocks count in a BlockGroup.
|
int |
getRequiredNumParityBlocks() |
Get required parity blocks count in a BlockGroup.
|
protected ECSchema |
getSchema() |
Get EC schema.
|
ECBlockGroup |
makeBlockGroup(ECBlock[] dataBlocks,
ECBlock[] parityBlocks) |
Calculating and organizing BlockGroup, to be called by ECManager
|
void |
setSchema(ECSchema schema) |
Set EC schema.
|
public void setSchema(ECSchema schema)
schema - schema.protected ECSchema getSchema()
public int getRequiredNumDataBlocks()
public int getRequiredNumParityBlocks()
public ECBlockGroup makeBlockGroup(ECBlock[] dataBlocks, ECBlock[] parityBlocks)
dataBlocks - Data blocks to compute parity blocks againstparityBlocks - To be computed parity blockspublic boolean anyRecoverable(ECBlockGroup blockGroup)
blockGroup - a blockGroup that may contain erased blocks but not sure
recoverable or notCopyright © 2008–2025 Apache Software Foundation. All rights reserved.