Example #1
0
        public override void Copy(MutableValue source)
        {
            MutableValueInt64 s = (MutableValueInt64)source;

            Exists = s.Exists;
            Value  = s.Value;
        }
Example #2
0
        public override MutableValue Duplicate()
        {
            MutableValueInt64 v = new MutableValueInt64();

            v.Value  = this.Value;
            v.Exists = this.Exists;
            return(v);
        }
Example #3
0
        public override int CompareSameType(object other)
        {
            MutableValueInt64 b = (MutableValueInt64)other;
            long bv             = b.Value;

            if (Value < bv)
            {
                return(-1);
            }
            if (Value > bv)
            {
                return(1);
            }
            if (Exists == b.Exists)
            {
                return(0);
            }
            return(Exists ? 1 : -1);
        }
Example #4
0
        public override bool EqualsSameType(object other)
        {
            MutableValueInt64 b = (MutableValueInt64)other;

            return(Value == b.Value && Exists == b.Exists);
        }
Example #5
0
 public ValueFillerAnonymousInnerClassHelper(Int64DocValues outerInstance)
 {
     this.outerInstance = outerInstance;
     mval = new MutableValueInt64();
 }