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

Method add_alternative

datafusion/physical-expr-common/src/sort_expr.rs:740–744  ·  view source on GitHub ↗

Adds an alternative requirement to the list of alternatives.

(&mut self, requirement: LexRequirement)

Source from the content-addressed store, hash-verified

738
739 /// Adds an alternative requirement to the list of alternatives.
740 pub fn add_alternative(&mut self, requirement: LexRequirement) {
741 match self {
742 Self::Hard(alts) | Self::Soft(alts) => alts.push(requirement),
743 }
744 }
745
746 /// Returns the first (i.e. most preferred) `LexRequirement` among
747 /// alternative requirements.

Callers 1

test_calc_requirementsFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 1

test_calc_requirementsFunction · 0.64