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

Method PutImpl

cpp/src/parquet/encoder.cc:395–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393
394template <typename SequenceType>
395void PlainEncoder<BooleanType>::PutImpl(const SequenceType& src, int num_values) {
396 PARQUET_THROW_NOT_OK(sink_.Reserve(num_values));
397 for (int i = 0; i < num_values; ++i) {
398 sink_.UnsafeAppend(src[i]);
399 }
400}
401
402int64_t PlainEncoder<BooleanType>::EstimatedDataEncodedSize() {
403 return ::arrow::bit_util::BytesForBits(sink_.length());

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
ReserveMethod · 0.45
UnsafeAppendMethod · 0.45

Tested by

no test coverage detected