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

Class DayMilliseconds

cpp/src/arrow/type.h:1810–1823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1808class ARROW_EXPORT DayTimeIntervalType : public IntervalType {
1809 public:
1810 struct DayMilliseconds {
1811 int32_t days = 0;
1812 int32_t milliseconds = 0;
1813 constexpr DayMilliseconds() = default;
1814 constexpr DayMilliseconds(int32_t days, int32_t milliseconds)
1815 : days(days), milliseconds(milliseconds) {}
1816 bool operator==(DayMilliseconds other) const {
1817 return this->days == other.days && this->milliseconds == other.milliseconds;
1818 }
1819 bool operator!=(DayMilliseconds other) const { return !(*this == other); }
1820 bool operator<(DayMilliseconds other) const {
1821 return this->days < other.days || this->milliseconds < other.milliseconds;
1822 }
1823 };
1824 using c_type = DayMilliseconds;
1825 using PhysicalType = DayTimeIntervalType;
1826

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected