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

Method getValueByIndex

c++/include/orc/Vector.hh:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 DataBuffer<int64_t> dictionaryOffset;
238
239 void getValueByIndex(int64_t index, char*& valPtr, int64_t& length) {
240 if (index < 0 || static_cast<uint64_t>(index) + 1 >= dictionaryOffset.size()) {
241 throw std::out_of_range("index out of range.");
242 }
243
244 int64_t* offsetPtr = dictionaryOffset.data();
245
246 valPtr = dictionaryBlob.data() + offsetPtr[index];
247 length = offsetPtr[index + 1] - offsetPtr[index];
248 }
249 };
250
251 /**

Callers 5

TEST_PFunction · 0.80
TESTFunction · 0.80
checkDictionaryEncodingFunction · 0.80
TESTFunction · 0.80
decodeDictionaryImplMethod · 0.80

Calls 2

sizeMethod · 0.65
dataMethod · 0.45

Tested by 4

TEST_PFunction · 0.64
TESTFunction · 0.64
checkDictionaryEncodingFunction · 0.64
TESTFunction · 0.64