@InterfaceAudience.Public @InterfaceStability.Evolving public final class ECSchema extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CODEC_NAME_KEY |
static String |
NUM_DATA_UNITS_KEY |
static String |
NUM_PARITY_UNITS_KEY |
Constructor and Description |
---|
ECSchema(Map<String,String> allOptions)
Constructor with schema name and provided all options.
|
ECSchema(String codecName,
int numDataUnits,
int numParityUnits)
Constructor with key parameters provided.
|
ECSchema(String codecName,
int numDataUnits,
int numParityUnits,
Map<String,String> extraOptions)
Constructor with key parameters provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCodecName()
Get the codec name
|
Map<String,String> |
getExtraOptions()
Get extra options specific to a erasure code.
|
int |
getNumDataUnits()
Get required data units count in a coding group
|
int |
getNumParityUnits()
Get required parity units count in a coding group
|
int |
hashCode() |
String |
toString()
Make a meaningful string representation for log output.
|
public static final String NUM_DATA_UNITS_KEY
public static final String NUM_PARITY_UNITS_KEY
public static final String CODEC_NAME_KEY
public ECSchema(Map<String,String> allOptions)
allOptions
- all schema optionspublic ECSchema(String codecName, int numDataUnits, int numParityUnits)
codecName
- codec namenumDataUnits
- number of data units used in the schemanumParityUnits
- number os parity units used in the schemapublic ECSchema(String codecName, int numDataUnits, int numParityUnits, Map<String,String> extraOptions)
codecName
- codec namenumDataUnits
- number of data units used in the schemanumParityUnits
- number os parity units used in the schemaextraOptions
- extra options to configure the codecpublic String getCodecName()
public Map<String,String> getExtraOptions()
public int getNumDataUnits()
public int getNumParityUnits()
public String toString()
Copyright © 2018 Apache Software Foundation. All rights reserved.