Class ReplicationTarget

  • All Implemented Interfaces:
    org.apache.hadoop.io.Writable

    public class ReplicationTarget
    extends Object
    implements org.apache.hadoop.io.Writable
    Container for where some work needs to be replicated
    • Constructor Detail

      • ReplicationTarget

        public ReplicationTarget()
      • ReplicationTarget

        public ReplicationTarget​(String peerName,
                                 String remoteIdentifier,
                                 TableId sourceTableId)
    • Method Detail

      • getPeerName

        public String getPeerName()
      • setPeerName

        public void setPeerName​(String peerName)
      • getRemoteIdentifier

        public String getRemoteIdentifier()
      • setRemoteIdentifier

        public void setRemoteIdentifier​(String remoteIdentifier)
      • getSourceTableId

        public TableId getSourceTableId()
      • setSourceTableId

        public void setSourceTableId​(TableId sourceTableId)
      • readFields

        public void readFields​(DataInput in)
                        throws IOException
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Throws:
        IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • from

        public static ReplicationTarget from​(org.apache.hadoop.io.Text t)
        Deserialize a ReplicationTarget
        Parameters:
        t - Serialized copy
        Returns:
        the deserialized version
      • from

        public static ReplicationTarget from​(String s)
        Deserialize a ReplicationTarget
        Parameters:
        s - Serialized copy
        Returns:
        the deserialized version
      • toText

        public 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
        Returns:
        The serialized representation of the object