Ejemplo n.º 1
0
 public virtual double ParseDouble(System.String val)
 {
     int shift = val[0] - NumericUtils.SHIFT_START_LONG;
     if (shift > 0 && shift <= 63)
         throw new FieldCacheImpl.StopFillCacheException();
     return NumericUtils.SortableLongToDouble(NumericUtils.PrefixCodedToLong(val));
 }
Ejemplo n.º 2
0
        public virtual long ParseLong(System.String val)
        {
            int shift = val[0] - NumericUtils.SHIFT_START_LONG;

            if (shift > 0 && shift <= 63)
            {
                throw new FieldCacheImpl.StopFillCacheException();
            }
            return(NumericUtils.PrefixCodedToLong(val));
        }