public virtual float ParseFloat(System.String val) { int shift = val[0] - NumericUtils.SHIFT_START_INT; if (shift > 0 && shift <= 31) { throw new FieldCacheImpl.StopFillCacheException(); } return(NumericUtils.SortableIntToFloat(NumericUtils.PrefixCodedToInt(val))); }
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))); }
protected internal override AcceptStatus Accept(BytesRef term) { return(NumericUtils.GetPrefixCodedIntShift(term) == 0 ? AcceptStatus.YES : AcceptStatus.END); }