Skip to content

Commit

Permalink
HBASE-27038 CellComparator should extend Serializable (apache#4492)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Change-Id: I41fb5ddd81e682490c117566dbe24c6a7dfe4732
  • Loading branch information
bbeaudreault authored and Stephen Wu committed Jun 28, 2022
1 parent 1f99770 commit 760bc9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package org.apache.hadoop.hbase;

import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.Comparator;
import org.apache.hadoop.hbase.util.ByteBufferUtils;
Expand All @@ -30,7 +31,7 @@
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface CellComparator extends Comparator<Cell> {
public interface CellComparator extends Comparator<Cell>, Serializable {
/**
* A comparator for ordering cells in user-space tables. Useful when writing cells in sorted order
* as necessary for bulk import (i.e. via MapReduce).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
@InterfaceStability.Evolving
public class CellComparatorImpl implements CellComparator {

private static final long serialVersionUID = 8186411895799094989L;

/**
* Comparator for plain key/values; i.e. non-catalog table key/values. Works on Key portion of
* KeyValue only.
Expand Down

0 comments on commit 760bc9d

Please sign in to comment.