Skip to content

Commit

Permalink
Flink: Remove deprecated RowDataUtil.clone method (#10902)
Browse files Browse the repository at this point in the history
Scheduled for removal in 1.7.0.
  • Loading branch information
findepi authored Aug 7, 2024
1 parent a3cbdcb commit 97e034b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,4 @@ public static RowData clone(

return ret;
}

/**
* @deprecated will be removed in 1.7.0; Not reusing FieldGetter in this method could lead to
* performance degradation, use {@link #clone(RowData, RowData, RowType, TypeSerializer[],
* RowData.FieldGetter[])} instead.
*/
@Deprecated
public static RowData clone(
RowData from, RowData reuse, RowType rowType, TypeSerializer[] fieldSerializers) {
RowData.FieldGetter[] fieldGetters = new RowData.FieldGetter[rowType.getFieldCount()];
for (int i = 0; i < rowType.getFieldCount(); ++i) {
if (!from.isNullAt(i)) {
fieldGetters[i] = RowData.createFieldGetter(rowType.getTypeAt(i), i);
}
}

return clone(from, reuse, rowType, fieldSerializers, fieldGetters);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,4 @@ public static RowData clone(

return ret;
}

/**
* @deprecated will be removed in 1.7.0; Not reusing FieldGetter in this method could lead to
* performance degradation, use {@link #clone(RowData, RowData, RowType, TypeSerializer[],
* RowData.FieldGetter[])} instead.
*/
@Deprecated
public static RowData clone(
RowData from, RowData reuse, RowType rowType, TypeSerializer[] fieldSerializers) {
RowData.FieldGetter[] fieldGetters = new RowData.FieldGetter[rowType.getFieldCount()];
for (int i = 0; i < rowType.getFieldCount(); ++i) {
if (!from.isNullAt(i)) {
fieldGetters[i] = RowData.createFieldGetter(rowType.getTypeAt(i), i);
}
}

return clone(from, reuse, rowType, fieldSerializers, fieldGetters);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,4 @@ public static RowData clone(

return ret;
}

/**
* @deprecated will be removed in 1.7.0; Not reusing FieldGetter in this method could lead to
* performance degradation, use {@link #clone(RowData, RowData, RowType, TypeSerializer[],
* RowData.FieldGetter[])} instead.
*/
@Deprecated
public static RowData clone(
RowData from, RowData reuse, RowType rowType, TypeSerializer[] fieldSerializers) {
RowData.FieldGetter[] fieldGetters = new RowData.FieldGetter[rowType.getFieldCount()];
for (int i = 0; i < rowType.getFieldCount(); ++i) {
if (!from.isNullAt(i)) {
fieldGetters[i] = RowData.createFieldGetter(rowType.getTypeAt(i), i);
}
}

return clone(from, reuse, rowType, fieldSerializers, fieldGetters);
}
}

0 comments on commit 97e034b

Please sign in to comment.