本文整理汇总了Java中org.apache.hadoop.io.erasurecode.ECChunk.toBuffers方法的典型用法代码示例。如果您正苦于以下问题:Java ECChunk.toBuffers方法的具体用法?Java ECChunk.toBuffers怎么用?Java ECChunk.toBuffers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.io.erasurecode.ECChunk
的用法示例。
在下文中一共展示了ECChunk.toBuffers方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: performCoding
import org.apache.hadoop.io.erasurecode.ECChunk; //导入方法依赖的package包/类
@Override
public void performCoding(ECChunk[] inputChunks, ECChunk[] outputChunks) {
if (erasedIndexes.length == 0) {
return;
}
ByteBuffer[] inputBuffers = ECChunk.toBuffers(inputChunks);
ByteBuffer[] outputBuffers = ECChunk.toBuffers(outputChunks);
performCoding(inputBuffers, outputBuffers);
}
示例2: decode
import org.apache.hadoop.io.erasurecode.ECChunk; //导入方法依赖的package包/类
@Override
public void decode(ECChunk[] inputs, int[] erasedIndexes,
ECChunk[] outputs) {
ByteBuffer[] newInputs = ECChunk.toBuffers(inputs);
ByteBuffer[] newOutputs = ECChunk.toBuffers(outputs);
decode(newInputs, erasedIndexes, newOutputs);
}
示例3: performCoding
import org.apache.hadoop.io.erasurecode.ECChunk; //导入方法依赖的package包/类
@Override
public void performCoding(ECChunk[] inputChunks, ECChunk[] outputChunks) {
ByteBuffer[] inputBuffers = ECChunk.toBuffers(inputChunks);
ByteBuffer[] outputBuffers = ECChunk.toBuffers(outputChunks);
performCoding(inputBuffers, outputBuffers);
}
示例4: encode
import org.apache.hadoop.io.erasurecode.ECChunk; //导入方法依赖的package包/类
@Override
public void encode(ECChunk[] inputs, ECChunk[] outputs) {
ByteBuffer[] newInputs = ECChunk.toBuffers(inputs);
ByteBuffer[] newOutputs = ECChunk.toBuffers(outputs);
encode(newInputs, newOutputs);
}
示例5: encode
import org.apache.hadoop.io.erasurecode.ECChunk; //导入方法依赖的package包/类
/**
* Encode with inputs and generates outputs. More see above.
*
* @param inputs input buffers to read data from
* @param outputs output buffers to put the encoded data into, read to read
* after the call
*/
public void encode(ECChunk[] inputs, ECChunk[] outputs) {
ByteBuffer[] newInputs = ECChunk.toBuffers(inputs);
ByteBuffer[] newOutputs = ECChunk.toBuffers(outputs);
encode(newInputs, newOutputs);
}