Class ReplicationTarget

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

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

      • ReplicationTarget

        public ReplicationTarget()
        Deprecated.
      • ReplicationTarget

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

      • getPeerName

        public String getPeerName()
        Deprecated.
      • setPeerName

        public void setPeerName​(String peerName)
        Deprecated.
      • getRemoteIdentifier

        public String getRemoteIdentifier()
        Deprecated.
      • setRemoteIdentifier

        public void setRemoteIdentifier​(String remoteIdentifier)
        Deprecated.
      • getSourceTableId

        public TableId getSourceTableId()
        Deprecated.
      • setSourceTableId

        public void setSourceTableId​(TableId sourceTableId)
        Deprecated.
      • write

        public void write​(DataOutput out)
                   throws IOException
        Deprecated.
        Specified by:
        write in interface org.apache.hadoop.io.Writable
        Throws:
        IOException
      • readFields

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

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • from

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

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

        public org.apache.hadoop.io.Text toText()
        Deprecated.
        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