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

Method PlainEncode

cpp/src/parquet/statistics.cc:960–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958
959template <typename DType>
960void TypedStatisticsImpl<DType>::PlainEncode(const T& src, std::string* dst) const {
961 auto encoder = MakeTypedEncoder<DType>(Encoding::PLAIN, false, descr_, pool_);
962 encoder->Put(&src, 1);
963 auto buffer = encoder->FlushValues();
964 auto ptr = reinterpret_cast<const char*>(buffer->data());
965 dst->assign(ptr, static_cast<size_t>(buffer->size()));
966}
967
968template <typename DType>
969void 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