@Private
public class ECBlock
extends java.lang.Object
ECChunks can be
extracted from. For HDFS, it can be an HDFS block (250MB). Note it only cares
about erasure coding specific logic thus avoids coupling with any HDFS block
details. We can have something like HdfsBlock extend it.| Constructor | Description |
|---|---|
ECBlock() |
A default constructor.
|
ECBlock(boolean isParity,
boolean isErased) |
A constructor specifying isParity and isErased.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isErased() |
|
boolean |
isParity() |
|
void |
setErased(boolean isErased) |
Set true if the block is missing.
|
void |
setParity(boolean isParity) |
Set true if it's for a parity block.
|
public ECBlock()
public ECBlock(boolean isParity,
boolean isErased)
isParity - is a parity blockisErased - is erased or notpublic void setParity(boolean isParity)
isParity - is parity or notpublic void setErased(boolean isErased)
isErased - is erased or notpublic boolean isParity()
public boolean isErased()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.