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

Method ParseTimeUnit

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

Source from the content-addressed store, hash-verified

888 }
889
890 Result<TimeUnit::type> ParseTimeUnit() {
891 RETURN_NOT_OK(CheckHasNext());
892 switch (Next()) {
893 case 's':
894 return TimeUnit::SECOND;
895 case 'm':
896 return TimeUnit::MILLI;
897 case 'u':
898 return TimeUnit::MICRO;
899 case 'n':
900 return TimeUnit::NANO;
901 default:
902 return Invalid();
903 }
904 }
905
906 SmallVector<std::string_view, 2> Split(std::string_view v, char delim = ',') {
907 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