The NumericUtils type exposes the following members.
Methods
Name | Description | |
---|---|---|
DoubleToPrefixCoded | Convenience method: this just returns:
longToPrefixCoded(doubleToSortableLong(val))
| |
DoubleToSortableLong | Converts a CopyC# double CopyC# long | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
FloatToPrefixCoded | Convenience method: this just returns:
intToPrefixCoded(floatToSortableInt(val))
| |
FloatToSortableInt | Converts a CopyC# float CopyC# int | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IntToPrefixCoded(Int32) | This is a convenience method, that returns prefix coded bits of an int without
reducing the precision. It can be used to store the full precision value as a
stored field in index.
To decode, use {@link #prefixCodedToInt}.
| |
IntToPrefixCoded(Int32, Int32) | Expert: Returns prefix coded bits after reducing the precision by CopyC# shift | |
IntToPrefixCoded(Int32, Int32, array<Char>[]()[][]) | Expert: Returns prefix coded bits after reducing the precision by CopyC# shift | |
LongToPrefixCoded(Int64) | This is a convenience method, that returns prefix coded bits of a long without
reducing the precision. It can be used to store the full precision value as a
stored field in index.
To decode, use {@link #prefixCodedToLong}.
| |
LongToPrefixCoded(Int64, Int32) | Expert: Returns prefix coded bits after reducing the precision by CopyC# shift | |
LongToPrefixCoded(Int64, Int32, array<Char>[]()[][]) | Expert: Returns prefix coded bits after reducing the precision by CopyC# shift | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PrefixCodedToDouble | Convenience method: this just returns:
sortableLongToDouble(prefixCodedToLong(val))
| |
PrefixCodedToFloat | Convenience method: this just returns:
sortableIntToFloat(prefixCodedToInt(val))
| |
PrefixCodedToInt | Returns an int from prefixCoded characters.
Rightmost bits will be zero for lower precision codes.
This method can be used to decode e.g. a stored field.
| |
PrefixCodedToLong | Returns a long from prefixCoded characters.
Rightmost bits will be zero for lower precision codes.
This method can be used to decode e.g. a stored field.
| |
SortableIntToFloat | Converts a sortable CopyC# int CopyC# float | |
SortableLongToDouble | Converts a sortable CopyC# long CopyC# double | |
SplitIntRange | Expert: Splits an int range recursively.
You may implement a builder that adds clauses to a
{@link Lucene.Net.Search.BooleanQuery} for each call to its
{@link IntRangeBuilder#AddRange(String,String)}
method.
This method is used by {@link NumericRangeQuery}.
| |
SplitLongRange | Expert: Splits a long range recursively.
You may implement a builder that adds clauses to a
{@link Lucene.Net.Search.BooleanQuery} for each call to its
{@link LongRangeBuilder#AddRange(String,String)}
method.
This method is used by {@link NumericRangeQuery}.
| |
ToString | (Inherited from Object.) |