MCPcopy Create free account
hub / github.com/apache/orc / getBlock

Method getBlock

c++/src/BlockBuffer.cc:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 BlockBuffer::Block BlockBuffer::getBlock(uint64_t blockIndex) const {
44 if (blockIndex >= getBlockNumber()) {
45 throw std::out_of_range("Block index out of range");
46 }
47 return Block(blocks_[blockIndex], std::min(currentSize_ - blockIndex * blockSize_, blockSize_));
48 }
49
50 BlockBuffer::Block BlockBuffer::getNextBlock() {
51 if (currentSize_ < currentCapacity_) {

Callers 4

TESTFunction · 0.80
writeToOutputStreamFunction · 0.80
compressInternalMethod · 0.80

Calls 1

BlockClass · 0.85

Tested by 2

TESTFunction · 0.64
writeToOutputStreamFunction · 0.64