@Private
public class DecodingValidator
extends java.lang.Object
| Constructor | Description |
|---|---|
DecodingValidator(RawErasureDecoder decoder) |
| Modifier and Type | Method | Description |
|---|---|---|
protected int |
getNewErasedIndex() |
|
protected int[] |
getNewValidIndexes() |
|
void |
validate(java.nio.ByteBuffer[] inputs,
int[] erasedIndexes,
java.nio.ByteBuffer[] outputs) |
Validate outputs decoded from inputs, by decoding an input back from
the outputs and comparing it with the original one.
|
void |
validate(ECChunk[] inputs,
int[] erasedIndexes,
ECChunk[] outputs) |
Validate outputs decoded from inputs, by decoding an input back from
those outputs and comparing it with the original one.
|
public DecodingValidator(RawErasureDecoder decoder)
public void validate(java.nio.ByteBuffer[] inputs,
int[] erasedIndexes,
java.nio.ByteBuffer[] outputs)
throws java.io.IOException
inputs - input buffers used for decoding. The buffers' position
are moved to the end after this method.erasedIndexes - indexes of erased units used for decodingoutputs - decoded output buffers, which are ready to be read after
the calljava.io.IOException - raised on errors performing I/O.public void validate(ECChunk[] inputs, int[] erasedIndexes, ECChunk[] outputs) throws java.io.IOException
inputs - input buffers used for decodingerasedIndexes - indexes of erased units used for decodingoutputs - decoded output buffersjava.io.IOException - raised on errors performing I/O.@VisibleForTesting protected int[] getNewValidIndexes()
@VisibleForTesting protected int getNewErasedIndex()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.