public class ReplicationTarget extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
ReplicationTarget() |
ReplicationTarget(String peerName,
String remoteIdentifier,
String sourceTableId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ReplicationTarget |
from(String s)
Deserialize a ReplicationTarget
|
static ReplicationTarget |
from(org.apache.hadoop.io.Text t)
Deserialize a ReplicationTarget
|
String |
getPeerName() |
String |
getRemoteIdentifier() |
String |
getSourceTableId() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
setPeerName(String peerName) |
void |
setRemoteIdentifier(String remoteIdentifier) |
void |
setSourceTableId(String sourceTableId) |
String |
toString() |
org.apache.hadoop.io.Text |
toText()
Convenience method to serialize a ReplicationTarget to
Text using the Writable methods without caring about performance penalties due to
excessive object creation |
void |
write(DataOutput out) |
public String getPeerName()
public void setPeerName(String peerName)
public String getRemoteIdentifier()
public void setRemoteIdentifier(String remoteIdentifier)
public String getSourceTableId()
public void setSourceTableId(String sourceTableId)
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public static ReplicationTarget from(org.apache.hadoop.io.Text t)
t
- Serialized copypublic static ReplicationTarget from(String s)
s
- Serialized copypublic org.apache.hadoop.io.Text toText()
Text
using the Writable
methods without caring about performance penalties due to
excessive object creationCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.