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

Method VisitValue

cpp/src/arrow/adapters/orc/util.cc:608–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606 return Status::OK();
607 }
608 Status VisitValue(int64_t v) {
609 int64_t data = array.Value(running_arrow_offset);
610 batch->notNull[running_orc_offset] = true;
611 batch->data[running_orc_offset] =
612 static_cast<int64_t>(std::floor(data / conversion_factor_from_second));
613 batch->nanoseconds[running_orc_offset] =
614 (data - conversion_factor_from_second * batch->data[running_orc_offset]) *
615 conversion_factor_to_nano;
616 running_orc_offset++;
617 running_arrow_offset++;
618 return Status::OK();
619 }
620 const ArrayType& array;
621 liborc::TimestampVectorBatch* batch;
622 int64_t running_orc_offset, running_arrow_offset;

Callers

nothing calls this directly

Calls 2

OKFunction · 0.50
ValueMethod · 0.45

Tested by

no test coverage detected