Uses of Class
org.apache.hadoop.hdfs.protocol.LocatedStripedBlock
Packages that use LocatedStripedBlock
Package
Description
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
-
Uses of LocatedStripedBlock in org.apache.hadoop.hdfs.util
Methods in org.apache.hadoop.hdfs.util with parameters of type LocatedStripedBlockModifier and TypeMethodDescriptionstatic LocatedBlockStripedBlockUtil.constructInternalBlock(LocatedStripedBlock bg, int idxInReturnedLocs, int cellSize, int dataBlkNum, int idxInBlockGroup) This method creates an internal block at the given index of a block group.static StripedBlockUtil.AlignedStripe[]StripedBlockUtil.divideByteRangeIntoStripes(ErasureCodingPolicy ecPolicy, int cellSize, LocatedStripedBlock blockGroup, long rangeStartInBlockGroup, long rangeEndInBlockGroup, ByteBuffer buf) This method divides a requested byte range into an array of inclusiveStripedBlockUtil.AlignedStripe.static StripedBlockUtil.AlignedStripe[]StripedBlockUtil.divideOneStripe(ErasureCodingPolicy ecPolicy, int cellSize, LocatedStripedBlock blockGroup, long rangeStartInBlockGroup, long rangeEndInBlockGroup, ByteBuffer buf) Similar functionality withStripedBlockUtil.divideByteRangeIntoStripes(org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy, int, org.apache.hadoop.hdfs.protocol.LocatedStripedBlock, long, long, java.nio.ByteBuffer), but is used by stateful read and uses ByteBuffer as reading target buffer.static LocatedBlock[]StripedBlockUtil.parseStripedBlockGroup(LocatedStripedBlock bg, int cellSize, int dataBlkNum, int parityBlkNum) This method parses a striped block group into individual blocks.