Skip to content

Commit dbf752b

Browse files
committed
Fix Compilation: Make UnsafeSortDataFormat and RecordPointerAndKeyPrefix public
1 parent 0b8bdf7 commit dbf752b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/src/main/java/org/apache/spark/util/collection/unsafe/sort/RecordPointerAndKeyPrefix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import org.apache.spark.memory.TaskMemoryManager;
2121

22-
final class RecordPointerAndKeyPrefix {
22+
public final class RecordPointerAndKeyPrefix {
2323
/**
2424
* A pointer to a record; see {@link TaskMemoryManager} for a
2525
* description of how these addresses are encoded.

core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeSortDataFormat.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
* Within each long[] buffer, position {@code 2 * i} holds a pointer pointer to the record at
3030
* index {@code i}, while position {@code 2 * i + 1} in the array holds an 8-byte key prefix.
3131
*/
32-
final class UnsafeSortDataFormat extends SortDataFormat<RecordPointerAndKeyPrefix, LongArray> {
32+
public final class UnsafeSortDataFormat
33+
extends SortDataFormat<RecordPointerAndKeyPrefix, LongArray> {
3334

3435
public static final UnsafeSortDataFormat INSTANCE = new UnsafeSortDataFormat();
3536

0 commit comments

Comments
 (0)