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

Function SetSlice

cpp/src/arrow/array/data.h:680–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678 }
679
680 void SetSlice(int64_t offset, int64_t length) {
681 this->offset = offset;
682 this->length = length;
683 if (this->type->id() == Type::NA) {
684 this->null_count = this->length;
685 } else if (buffers[0].data != NULLPTR) {
686 this->null_count = kUnknownNullCount;
687 } else {
688 this->null_count = 0;
689 }
690 }
691
692 /// \brief Return physical null count, or compute and set it if it's not known
693 int64_t GetNullCount() const;

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected