MCPcopy Create free account
hub / github.com/apache/impala / ToString

Method ToString

be/src/runtime/timestamp-value.cc:261–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void TimestampValue::ToString(string& dst) const {
262 dst.resize(SimpleDateFormatTokenizer::DEFAULT_DATE_TIME_FMT_LEN);
263 const int out_len = TimestampParser::FormatDefault(date(), time(), dst.data());
264 if (UNLIKELY(out_len != SimpleDateFormatTokenizer::DEFAULT_DATE_TIME_FMT_LEN)) {
265 if (UNLIKELY(out_len < 0)) {
266 dst.clear();
267 } else {
268 dst.resize(out_len);
269 }
270 }
271}
272
273string TimestampValue::ToString() const {
274 string dst;

Callers

nothing calls this directly

Calls 5

timeFunction · 0.85
resizeMethod · 0.80
clearMethod · 0.65
ToStringFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected