diff --git a/crates/iceberg/src/expr/predicate.rs b/crates/iceberg/src/expr/predicate.rs index 5d7e005af..64bfaa062 100644 --- a/crates/iceberg/src/expr/predicate.rs +++ b/crates/iceberg/src/expr/predicate.rs @@ -147,12 +147,12 @@ impl UnaryExpression { } /// Return the operator of this predicate. - pub(crate) fn op(&self) -> PredicateOperator { + pub fn op(&self) -> PredicateOperator { self.op } /// Return the term of this predicate. - pub(crate) fn term(&self) -> &T { + pub fn term(&self) -> &T { &self.term } } @@ -199,17 +199,18 @@ impl BinaryExpression { Self { op, term, literal } } - pub(crate) fn op(&self) -> PredicateOperator { + /// Return the operator used by this predicate expression. + pub fn op(&self) -> PredicateOperator { self.op } /// Return the literal of this predicate. - pub(crate) fn literal(&self) -> &Datum { + pub fn literal(&self) -> &Datum { &self.literal } /// Return the term of this predicate. - pub(crate) fn term(&self) -> &T { + pub fn term(&self) -> &T { &self.term } } @@ -261,16 +262,17 @@ impl SetExpression { } /// Return the operator of this predicate. - pub(crate) fn op(&self) -> PredicateOperator { + pub fn op(&self) -> PredicateOperator { self.op } - pub(crate) fn literals(&self) -> &FnvHashSet { + /// Return the hash set of values compared against the term in this expression. + pub fn literals(&self) -> &FnvHashSet { &self.literals } /// Return the term of this predicate. - pub(crate) fn term(&self) -> &T { + pub fn term(&self) -> &T { &self.term } }