MCPcopy Create free account
hub / github.com/apache/arrow / DeltaEncode

Function DeltaEncode

cpp/src/parquet/encoding_test.cc:2175–2179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2173}
2174
2175std::shared_ptr<Buffer> DeltaEncode(std::vector<int32_t> lengths) {
2176 auto encoder = MakeTypedEncoder<Int32Type>(Encoding::DELTA_BINARY_PACKED);
2177 encoder->Put(lengths.data(), static_cast<int>(lengths.size()));
2178 return encoder->FlushValues();
2179}
2180
2181std::shared_ptr<Buffer> DeltaEncode(std::span<const int32_t> lengths) {
2182 auto encoder = MakeTypedEncoder<Int32Type>(Encoding::DELTA_BINARY_PACKED);

Callers 1

TESTFunction · 0.85

Calls 6

PutMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
FlushValuesMethod · 0.45
raw_valuesMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected