Esempio n. 1
0
 public _IEnumerator_123(TupleWritable _enclosing, Org.Apache.Hadoop.Mapreduce.Lib.Join.TupleWritable
                         t)
 {
     this._enclosing = _enclosing;
     this.t          = t;
     this.bitIndex   = this._enclosing.written.NextSetBit(0);
 }
Esempio n. 2
0
 /// <summary><inheritDoc/></summary>
 public override bool Equals(object other)
 {
     if (other is Org.Apache.Hadoop.Mapreduce.Lib.Join.TupleWritable)
     {
         Org.Apache.Hadoop.Mapreduce.Lib.Join.TupleWritable that = (Org.Apache.Hadoop.Mapreduce.Lib.Join.TupleWritable
                                                                    )other;
         if (!this.written.Equals(that.written))
         {
             return(false);
         }
         for (int i = 0; i < values.Length; ++i)
         {
             if (!Has(i))
             {
                 continue;
             }
             if (!values[i].Equals(that.Get(i)))
             {
                 return(false);
             }
         }
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
 /// <summary>Return an iterator over the elements in this tuple.</summary>
 /// <remarks>
 /// Return an iterator over the elements in this tuple.
 /// Note that this doesn't flatten the tuple; one may receive tuples
 /// from this iterator.
 /// </remarks>
 public virtual IEnumerator <Writable> GetEnumerator()
 {
     Org.Apache.Hadoop.Mapreduce.Lib.Join.TupleWritable t = this;
     return(new _IEnumerator_123(this, t));
 }