| 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; |