Skip to content

Commit

Permalink
Arrow: Deprecate unused fixed width binary reader classes (#11292)
Browse files Browse the repository at this point in the history
  • Loading branch information
wypoon authored Oct 14, 2024
1 parent 7912035 commit 12ff959
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ protected int nextBatchOf(
}
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
public class FixedWidthTypeBinaryBatchReader extends BatchReader {
@Override
protected int nextBatchOf(
Expand Down Expand Up @@ -278,6 +282,10 @@ public VarWidthTypeBatchReader varWidthTypeBatchReader() {
return new VarWidthTypeBatchReader();
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
public FixedWidthTypeBinaryBatchReader fixedWidthTypeBinaryBatchReader() {
return new FixedWidthTypeBinaryBatchReader();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ protected void nextVal(
}
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
class FixedWidthBinaryDictEncodedReader extends BaseDictEncodedReader {
@Override
protected void nextVal(
Expand Down Expand Up @@ -203,6 +207,10 @@ public DoubleDictEncodedReader doubleDictEncodedReader() {
return new DoubleDictEncodedReader();
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
public FixedWidthBinaryDictEncodedReader fixedWidthBinaryDictEncodedReader() {
return new FixedWidthBinaryDictEncodedReader();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ protected void nextDictEncodedVal(
* Method for reading batches of fixed width binary type (e.g. BYTE[7]). Spark does not support
* fixed width binary data type. To work around this limitation, the data is read as fixed width
* binary from parquet and stored in a {@link VarBinaryVector} in Arrow.
*
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
class FixedWidthBinaryPageReader extends BasePageReader {
@Override
protected void nextVal(
Expand Down Expand Up @@ -496,6 +499,10 @@ VarWidthTypePageReader varWidthTypePageReader() {
return new VarWidthTypePageReader();
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
FixedWidthBinaryPageReader fixedWidthBinaryPageReader() {
return new FixedWidthBinaryPageReader();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,10 @@ protected void nextDictEncodedVal(
}
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
class FixedWidthBinaryReader extends BaseReader {
@Override
protected void nextVal(
Expand Down Expand Up @@ -732,6 +736,10 @@ TimestampInt96Reader timestampInt96Reader() {
return new TimestampInt96Reader();
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0.
*/
@Deprecated
FixedWidthBinaryReader fixedWidthBinaryReader() {
return new FixedWidthBinaryReader();
}
Expand Down

0 comments on commit 12ff959

Please sign in to comment.