Skip to content

Commit

Permalink
mark private function
Browse files Browse the repository at this point in the history
  • Loading branch information
ZENOTME committed Feb 25, 2025
1 parent df3dd40 commit 6ddf160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/iceberg/src/spec/schema/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub trait SchemaVisitor {
}

/// Visiting a type in post order.
pub fn visit_type<V: SchemaVisitor>(r#type: &Type, visitor: &mut V) -> Result<V::T> {
pub(crate) fn visit_type<V: SchemaVisitor>(r#type: &Type, visitor: &mut V) -> Result<V::T> {
match r#type {
Type::Primitive(p) => visitor.primitive(p),
Type::List(list) => {
Expand Down Expand Up @@ -202,7 +202,7 @@ pub trait PartnerAccessor<P> {
}

/// Visiting a type in post order.
pub fn visit_type_with_partner<P, V: SchemaWithPartnerVisitor<P>, A: PartnerAccessor<P>>(
pub(crate) fn visit_type_with_partner<P, V: SchemaWithPartnerVisitor<P>, A: PartnerAccessor<P>>(
r#type: &Type,
partner: &P,
visitor: &mut V,
Expand Down
4 changes: 2 additions & 2 deletions crates/iceberg/src/spec/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1565,12 +1565,12 @@ impl Literal {
}

/// Creates a timestamp from unix epoch in nanoseconds.
pub fn timestamp_nano(value: i64) -> Self {
pub(crate) fn timestamp_nano(value: i64) -> Self {
Self::Primitive(PrimitiveLiteral::Long(value))
}

/// Creates a timestamp with timezone from unix epoch in nanoseconds.
pub fn timestamptz_nano(value: i64) -> Self {
pub(crate) fn timestamptz_nano(value: i64) -> Self {
Self::Primitive(PrimitiveLiteral::Long(value))
}

Expand Down

0 comments on commit 6ddf160

Please sign in to comment.