MCPcopy Create free account
hub / github.com/apache/datafusion / reverse

Method reverse

datafusion/expr/src/expr.rs:1034–1040  ·  view source on GitHub ↗

Create a new Sort expression with the opposite sort direction

(&self)

Source from the content-addressed store, hash-verified

1032
1033 /// Create a new Sort expression with the opposite sort direction
1034 pub fn reverse(&self) -> Self {
1035 Self {
1036 expr: self.expr.clone(),
1037 asc: !self.asc,
1038 nulls_first: !self.nulls_first,
1039 }
1040 }
1041
1042 /// Replaces the Sort expressions with `expr`
1043 pub fn with_expr(&self, expr: Expr) -> Self {

Callers 5

fixed_size_array_reverseFunction · 0.45
append_reversedFunction · 0.45
cmpMethod · 0.45
rewriteMethod · 0.45
optimize_projectionsFunction · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected