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

Method ToString

cpp/src/arrow/compute/ordering.cc:31–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31std::string SortKey::ToString() const {
32 std::stringstream ss;
33 ss << target.ToString() << ' ';
34 switch (order) {
35 case SortOrder::Ascending:
36 ss << "ASC";
37 break;
38 case SortOrder::Descending:
39 ss << "DESC";
40 break;
41 }
42 switch (null_placement) {
43 case NullPlacement::AtStart:
44 ss << " NULLS FIRST";
45 break;
46 case NullPlacement::AtEnd:
47 ss << " NULLS LAST";
48 break;
49 }
50 return ss.str();
51}
52
53bool Ordering::IsSuborderOf(const Ordering& other) const {
54 if (sort_keys_.empty()) {

Callers

nothing calls this directly

Calls 3

UnreachableFunction · 0.85
strMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected