Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
foreverneverer committed Sep 8, 2020
1 parent 90bb0c7 commit bb60374
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

public abstract class Batch<Request, Response> implements Serializable {

private final List<Request> requests;
private static final long serialVersionUID = -6267381453465488529L;

private List<Request> requests;
public PegasusTableInterface table;
public int timeout;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

public class BatchDelete extends Batch<Delete, Void> {

private static final long serialVersionUID = -3749505015438921947L;

public BatchDelete(List<Delete> deletes) {
super(deletes);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

public class BatchGet extends Batch<Get, byte[]> {

private static final long serialVersionUID = -8713375648386293450L;

public BatchGet(List<Get> gets) {
super(gets);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

public class BatchMultiDelete extends Batch<MultiDelete, Void> {

private static final long serialVersionUID = 4692293597610231870L;

public BatchMultiDelete(List<MultiDelete> multiDeletes) {
super(multiDeletes);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

public class BatchMultiGet extends Batch<MultiGet, MultiGetResult> {

private static final long serialVersionUID = -8398629822956682881L;

public BatchMultiGet(List<MultiGet> multiGets) {
super(multiGets);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

public class BatchMultiSet extends Batch<MultiSet, Void> {

private static final long serialVersionUID = -7112478467009023481L;

public BatchMultiSet(List<MultiSet> multiSets) {
super(multiSets);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

public class BatchSet extends Batch<Set, Void> {

private static final long serialVersionUID = 7339081203717442862L;

public BatchSet(List<Set> sets) {
super(sets);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
import java.io.Serializable;

public class Delete implements Serializable {
public final byte[] hashKey;
public final byte[] sortKey;

private static final long serialVersionUID = 7472471005807908575L;

public byte[] hashKey;
public byte[] sortKey;

public Delete(byte[] hashKey) {
this(hashKey, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
import java.io.Serializable;

public class Get implements Serializable {
public final byte[] hashKey;
public final byte[] sortKey;

private static final long serialVersionUID = 5022721155142508979L;

public byte[] hashKey;
public byte[] sortKey;

public Get(byte[] hashKey) {
this(hashKey, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
import java.util.List;

public class MultiDelete implements Serializable {
public final byte[] hashKey;
public final List<byte[]> sortKeys;

private static final long serialVersionUID = -9090489322713020570L;

public byte[] hashKey;
public List<byte[]> sortKeys;

public MultiDelete(byte[] hashKey) {
this(hashKey, new ArrayList<>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
import java.util.List;

public class MultiGet implements Serializable {
public final byte[] hashKey;
public final List<byte[]> sortKeys;

private static final long serialVersionUID = 2068964280456524026L;

public byte[] hashKey;
public List<byte[]> sortKeys;

public MultiGet(byte[] hashKey) {
this(hashKey, new ArrayList<>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
import org.apache.commons.lang3.tuple.Pair;

public class MultiSet implements Serializable {
public final byte[] hashKey;
public final List<Pair<byte[], byte[]>> values;

private static final long serialVersionUID = -2236077975122224688L;

public byte[] hashKey;
public List<Pair<byte[], byte[]>> values;

public int ttlSeconds;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
import java.io.Serializable;

public class Set implements Serializable {
public final byte[] hashKey;
public final byte[] sortKey;
public final byte[] value;

private static final long serialVersionUID = -2136211461120973309L;

public byte[] hashKey;
public byte[] sortKey;
public byte[] value;

public int ttlSeconds;

Expand Down

0 comments on commit bb60374

Please sign in to comment.