XRootD
Loading...
Searching...
No Matches
XrdCephReadVNoOp.cc
Go to the documentation of this file.
1
2#include "XrdCephReadVNoOp.hh"
3#include "BufferUtils.hh"
4
5using namespace XrdCephBuffer;
6
7std::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...
const ExtentContainer & extents() const
void push_back(const Extent &in)
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...
std::vector< Extent > ExtentContainer
Container defintion for Extents Typedef to provide a container of extents as a simple stl vector cont...