Skip to content

Commit

Permalink
Convert IcebergPartitionColumn to record
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr authored and wendigo committed Jun 25, 2024
1 parent 8011fbe commit 2524c21
Showing 1 changed file with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,34 +370,5 @@ public int hashCode()
}
}

private static class IcebergPartitionColumn
{
private final RowType rowType;
private final List<Integer> fieldIds;

public IcebergPartitionColumn(RowType rowType, List<Integer> fieldIds)
{
this.rowType = rowType;
this.fieldIds = fieldIds;
}

@Override
public boolean equals(Object o)
{
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IcebergPartitionColumn that = (IcebergPartitionColumn) o;
return Objects.equals(rowType, that.rowType) && Objects.equals(fieldIds, that.fieldIds);
}

@Override
public int hashCode()
{
return Objects.hash(rowType, fieldIds);
}
}
private record IcebergPartitionColumn(RowType rowType, List<Integer> fieldIds) {}
}

0 comments on commit 2524c21

Please sign in to comment.