public class SendSnapshotRequest extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<SendSnapshotRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
SendSnapshotRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
long |
committed_log_id |
static int |
COMMITTED_LOG_ID |
long |
committed_log_term |
static int |
COMMITTED_LOG_TERM |
boolean |
done |
static int |
DONE |
String |
leader_addr |
static int |
LEADER_ADDR |
int |
leader_port |
static int |
LEADER_PORT |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
part |
static int |
PART |
List<byte[]> |
rows |
static int |
ROWS |
int |
space |
static int |
SPACE |
long |
term |
static int |
TERM |
long |
total_count |
static int |
TOTAL_COUNT |
long |
total_size |
static int |
TOTAL_SIZE |
| Constructor and Description |
|---|
SendSnapshotRequest() |
SendSnapshotRequest(int space,
int part,
long term,
long committed_log_id,
long committed_log_term,
String leader_addr,
int leader_port,
List<byte[]> rows,
long total_size,
long total_count,
boolean done) |
SendSnapshotRequest(SendSnapshotRequest other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static SendSnapshotRequest.Builder |
builder() |
int |
compareTo(SendSnapshotRequest other) |
SendSnapshotRequest |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
long |
getCommitted_log_id() |
long |
getCommitted_log_term() |
Object |
getFieldValue(int fieldID) |
String |
getLeader_addr() |
int |
getLeader_port() |
int |
getPart() |
List<byte[]> |
getRows() |
int |
getSpace() |
long |
getTerm() |
long |
getTotal_count() |
long |
getTotal_size() |
int |
hashCode() |
boolean |
isDone() |
boolean |
isSetCommitted_log_id() |
boolean |
isSetCommitted_log_term() |
boolean |
isSetDone() |
boolean |
isSetLeader_addr() |
boolean |
isSetLeader_port() |
boolean |
isSetPart() |
boolean |
isSetRows() |
boolean |
isSetSpace() |
boolean |
isSetTerm() |
boolean |
isSetTotal_count() |
boolean |
isSetTotal_size() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
SendSnapshotRequest |
setCommitted_log_id(long committed_log_id) |
void |
setCommitted_log_idIsSet(boolean __value) |
SendSnapshotRequest |
setCommitted_log_term(long committed_log_term) |
void |
setCommitted_log_termIsSet(boolean __value) |
SendSnapshotRequest |
setDone(boolean done) |
void |
setDoneIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
SendSnapshotRequest |
setLeader_addr(String leader_addr) |
void |
setLeader_addrIsSet(boolean __value) |
SendSnapshotRequest |
setLeader_port(int leader_port) |
void |
setLeader_portIsSet(boolean __value) |
SendSnapshotRequest |
setPart(int part) |
void |
setPartIsSet(boolean __value) |
SendSnapshotRequest |
setRows(List<byte[]> rows) |
void |
setRowsIsSet(boolean __value) |
SendSnapshotRequest |
setSpace(int space) |
void |
setSpaceIsSet(boolean __value) |
SendSnapshotRequest |
setTerm(long term) |
void |
setTermIsSet(boolean __value) |
SendSnapshotRequest |
setTotal_count(long total_count) |
void |
setTotal_countIsSet(boolean __value) |
SendSnapshotRequest |
setTotal_size(long total_size) |
void |
setTotal_sizeIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetCommitted_log_id() |
void |
unsetCommitted_log_term() |
void |
unsetDone() |
void |
unsetLeader_addr() |
void |
unsetLeader_port() |
void |
unsetPart() |
void |
unsetRows() |
void |
unsetSpace() |
void |
unsetTerm() |
void |
unsetTotal_count() |
void |
unsetTotal_size() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public int space
public int part
public long term
public long committed_log_id
public long committed_log_term
public String leader_addr
public int leader_port
public List<byte[]> rows
public long total_size
public long total_count
public boolean done
public static final int SPACE
public static final int PART
public static final int TERM
public static final int COMMITTED_LOG_ID
public static final int COMMITTED_LOG_TERM
public static final int LEADER_ADDR
public static final int LEADER_PORT
public static final int ROWS
public static final int TOTAL_SIZE
public static final int TOTAL_COUNT
public static final int DONE
public SendSnapshotRequest()
public SendSnapshotRequest(int space,
int part,
long term,
long committed_log_id,
long committed_log_term,
String leader_addr,
int leader_port,
List<byte[]> rows,
long total_size,
long total_count,
boolean done)
public SendSnapshotRequest(SendSnapshotRequest other)
public static SendSnapshotRequest.Builder builder()
public SendSnapshotRequest deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic int getSpace()
public SendSnapshotRequest setSpace(int space)
public void unsetSpace()
public boolean isSetSpace()
public void setSpaceIsSet(boolean __value)
public int getPart()
public SendSnapshotRequest setPart(int part)
public void unsetPart()
public boolean isSetPart()
public void setPartIsSet(boolean __value)
public long getTerm()
public SendSnapshotRequest setTerm(long term)
public void unsetTerm()
public boolean isSetTerm()
public void setTermIsSet(boolean __value)
public long getCommitted_log_id()
public SendSnapshotRequest setCommitted_log_id(long committed_log_id)
public void unsetCommitted_log_id()
public boolean isSetCommitted_log_id()
public void setCommitted_log_idIsSet(boolean __value)
public long getCommitted_log_term()
public SendSnapshotRequest setCommitted_log_term(long committed_log_term)
public void unsetCommitted_log_term()
public boolean isSetCommitted_log_term()
public void setCommitted_log_termIsSet(boolean __value)
public String getLeader_addr()
public SendSnapshotRequest setLeader_addr(String leader_addr)
public void unsetLeader_addr()
public boolean isSetLeader_addr()
public void setLeader_addrIsSet(boolean __value)
public int getLeader_port()
public SendSnapshotRequest setLeader_port(int leader_port)
public void unsetLeader_port()
public boolean isSetLeader_port()
public void setLeader_portIsSet(boolean __value)
public List<byte[]> getRows()
public SendSnapshotRequest setRows(List<byte[]> rows)
public void unsetRows()
public boolean isSetRows()
public void setRowsIsSet(boolean __value)
public long getTotal_size()
public SendSnapshotRequest setTotal_size(long total_size)
public void unsetTotal_size()
public boolean isSetTotal_size()
public void setTotal_sizeIsSet(boolean __value)
public long getTotal_count()
public SendSnapshotRequest setTotal_count(long total_count)
public void unsetTotal_count()
public boolean isSetTotal_count()
public void setTotal_countIsSet(boolean __value)
public boolean isDone()
public SendSnapshotRequest setDone(boolean done)
public void unsetDone()
public boolean isSetDone()
public void setDoneIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(SendSnapshotRequest other)
compareTo in interface Comparable<SendSnapshotRequest>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.