XRootD
XrdCephReadVNoOp.cc
Go to the documentation of this file.
1 
2 #include "XrdCephReadVNoOp.hh"
3 #include "BufferUtils.hh"
4 
5 using namespace XrdCephBuffer;
6 
7 std::vector<ExtentHolder> XrdCephReadVNoOp::convert(const ExtentHolder &extentsHolderInput)
8 {
9  std::vector<ExtentHolder> outputs;
10 
11  const ExtentContainer &extentsIn = extentsHolderInput.extents();
12 
13  for (ExtentContainer::const_iterator it = extentsIn.begin(); it != extentsIn.end(); ++it)
14  {
15  ExtentHolder tmp;
16  tmp.push_back(*it);
17  outputs.push_back(tmp);
18  } // for
19  // each element in the output contains one element, the
20 
21  return outputs;
22 } // convert
Designed to hold individual extents, but itself provide Extent-like capabilities Useful in cases of c...
Definition: BufferUtils.hh:109
void push_back(const Extent &in)
Definition: BufferUtils.cc:101
const ExtentContainer & extents() const
Definition: BufferUtils.hh:133
virtual std::vector< ExtentHolder > convert(const ExtentHolder &extentsHolderInput) override
Take in a set of extents representing the readV requests. return a vector of each combined read reque...
is a simple implementation of IXrdCephBufferData using std::vector<char> representation for the buffe...
Definition: BufferUtils.hh:29
std::vector< Extent > ExtentContainer
Container defintion for Extents Typedef to provide a container of extents as a simple stl vector cont...
Definition: BufferUtils.hh:99