Class ErasureCoderOptions

java.lang.Object
org.apache.hadoop.io.erasurecode.ErasureCoderOptions

@Private public final class ErasureCoderOptions extends Object
Erasure coder configuration that maintains schema info and coder options.
  • Constructor Details

    • ErasureCoderOptions

      public ErasureCoderOptions(int numDataUnits, int numParityUnits)
    • ErasureCoderOptions

      public ErasureCoderOptions(int numDataUnits, int numParityUnits, boolean allowChangeInputs, boolean allowVerboseDump)
  • Method Details

    • getNumDataUnits

      public int getNumDataUnits()
      The number of data input units for the coding. A unit can be a byte, chunk or buffer or even a block.
      Returns:
      count of data input units
    • getNumParityUnits

      public int getNumParityUnits()
      The number of parity output units for the coding. A unit can be a byte, chunk, buffer or even a block.
      Returns:
      count of parity output units
    • getNumAllUnits

      public int getNumAllUnits()
      The number of all the involved units in the coding.
      Returns:
      count of all the data units and parity units
    • allowChangeInputs

      public boolean allowChangeInputs()
      Allow changing input buffer content (not positions). Maybe better performance if not allowed.
      Returns:
      true if allowing input content to be changed, false otherwise
    • allowVerboseDump

      public boolean allowVerboseDump()
      Allow dump verbose debug info or not.
      Returns:
      true if verbose debug info is desired, false otherwise