Java org.apache.lucene.util NumericUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util NumericUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util NumericUtils.

The text is from its open source code.

Method

longdoubleToSortableLong(double value)
Converts a double value to a sortable signed long.
intfloatToSortableInt(float value)
Converts a float value to a sortable signed int.
voidintToSortableBytes(int value, byte[] result, int offset)
Encodes an integer value such that unsigned byte order comparison is consistent with Integer#compare(int,int)
voidlongToSortableBytes(long value, byte[] result, int offset)
Encodes an long value such that unsigned byte order comparison is consistent with Long#compare(long,long)
intsortableBytesToInt(byte[] encoded, int offset)
Decodes an integer value previously written with #intToSortableBytes
floatsortableIntToFloat(int encoded)
Converts a sortable int back to a float.
doublesortableLongToDouble(long encoded)
Converts a sortable long back to a double.