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}.
Namespace: Lucene.Net.UtilAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static string LongToPrefixCoded( long val ) |
Visual Basic |
---|
Public Shared Function LongToPrefixCoded ( _ val As Long _ ) As String |
Visual C++ |
---|
public: static String^ LongToPrefixCoded( long long val ) |
Parameters
- val
- Type: System..::..Int64
[Missing <param name="val"/> documentation for "M:Lucene.Net.Util.NumericUtils.LongToPrefixCoded(System.Int64)"]
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Util.NumericUtils.LongToPrefixCoded(System.Int64)"]