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

Method ParseTimeUnit

cpp/src/arrow/c/bridge.cc:882–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880 }
881
882 Result<TimeUnit::type> ParseTimeUnit() {
883 RETURN_NOT_OK(CheckHasNext());
884 switch (Next()) {
885 case 's':
886 return TimeUnit::SECOND;
887 case 'm':
888 return TimeUnit::MILLI;
889 case 'u':
890 return TimeUnit::MICRO;
891 case 'n':
892 return TimeUnit::NANO;
893 default:
894 return Invalid();
895 }
896 }
897
898 SmallVector<std::string_view, 2> Split(std::string_view v, char delim = ',') {
899 SmallVector<std::string_view, 2> parts;

Callers

nothing calls this directly

Calls 2

NextFunction · 0.50
InvalidFunction · 0.50

Tested by

no test coverage detected