The NumericUtils type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| DoubleToPrefixCoded | Convenience method: this just returns:
longToPrefixCoded(doubleToSortableLong(val))
| |
| DoubleToSortableLong | Converts a doublelong | |
| 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 floatint | |
| 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 shift | |
| IntToPrefixCoded(Int32, Int32, array<Char>[]()[][]) | Expert: Returns prefix coded bits after reducing the precision by 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 shift | |
| LongToPrefixCoded(Int64, Int32, array<Char>[]()[][]) | Expert: Returns prefix coded bits after reducing the precision by 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 intfloat | |
| SortableLongToDouble | Converts a sortable longdouble | |
| 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.) |
Fields
| Name | Description | |
|---|---|---|
| BUF_SIZE_INT | Expert: The maximum term length (used for char[]int | |
| BUF_SIZE_LONG | Expert: The maximum term length (used for char[]long | |
| PRECISION_STEP_DEFAULT | The default precision step used by {@link NumericField}, {@link NumericTokenStream},
{@link NumericRangeQuery}, and {@link NumericRangeFilter} as default
| |
| SHIFT_START_INT | Expert: Integers are stored at lower precision by shifting off lower bits. The shift count is
stored as SHIFT_START_INT+shift | |
| SHIFT_START_LONG | Expert: Longs are stored at lower precision by shifting off lower bits. The shift count is
stored as SHIFT_START_LONG+shift |