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

Method ParseTimeUnit

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

Source from the content-addressed store, hash-verified

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