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

Method PlainEncode

cpp/src/parquet/statistics.cc:1015–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013
1014template <typename DType>
1015void TypedStatisticsImpl<DType>::PlainEncode(const T& src, std::string* dst) const {
1016 auto encoder = MakeTypedEncoder<DType>(Encoding::PLAIN, false, descr_, pool_);
1017 encoder->Put(&src, 1);
1018 auto buffer = encoder->FlushValues();
1019 auto ptr = reinterpret_cast<const char*>(buffer->data());
1020 dst->assign(ptr, static_cast<size_t>(buffer->size()));
1021}
1022
1023template <typename DType>
1024void TypedStatisticsImpl<DType>::PlainDecode(const std::string& src, T* dst) const {

Callers 2

EncodeMinMethod · 0.95
EncodeMaxMethod · 0.95

Calls 5

assignMethod · 0.80
PutMethod · 0.45
FlushValuesMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected