Example #1
0
 public override bool Equals(object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj is Org.Apache.Hadoop.IO.MapWritable)
     {
         Org.Apache.Hadoop.IO.MapWritable map = (Org.Apache.Hadoop.IO.MapWritable)obj;
         if (Count != map.Count)
         {
             return(false);
         }
         return(this.Equals(map));
     }
     return(false);
 }
Example #2
0
 /// <summary>Copy constructor.</summary>
 /// <param name="other">the map to copy from</param>
 public MapWritable(Org.Apache.Hadoop.IO.MapWritable other)
     : this()
 {
     Copy(other);
 }