| java.lang.Object org.apache.solr.util.BCDUtils
BCDUtils | public class BCDUtils (Code) | | author: yonik version: $Id: BCDUtils.java 472574 2006-11-08 18:25:52Z yonik $ |
Method Summary | |
public static String | base100SortableIntToBase10(String val) | public static int | base100SortableIntToBase10(char[] arr, int start, int end, char[] out, int offset) | public static int | base100toBase10(char[] arr, int start, int end, char[] out, int offset) | public static String | base10kSortableIntToBase10(String val) | public static int | base10kSortableIntToBase10(char[] arr, int start, int end, char[] out, int offset) | public static int | base10toBase100(char[] arr, int start, int end, char[] out, int outend) | public static String | base10toBase100SortableInt(String val) | public static int | base10toBase100SortableInt(char[] arr, int start, int end, char[] out, int outend) FUTURE
// the zero exponent... | public static String | base10toBase10kSortableInt(String val) | public static int | base10toBase10kSortableInt(char[] arr, int start, int end, char[] out, int outend) |
base100SortableIntToBase10 | public static String base100SortableIntToBase10(String val)(Code) | | |
base100SortableIntToBase10 | public static int base100SortableIntToBase10(char[] arr, int start, int end, char[] out, int offset)(Code) | | |
base100toBase10 | public static int base100toBase10(char[] arr, int start, int end, char[] out, int offset)(Code) | | |
base10kSortableIntToBase10 | public static String base10kSortableIntToBase10(String val)(Code) | | |
base10kSortableIntToBase10 | public static int base10kSortableIntToBase10(char[] arr, int start, int end, char[] out, int offset)(Code) | | |
base10toBase100 | public static int base10toBase100(char[] arr, int start, int end, char[] out, int outend)(Code) | | |
base10toBase100SortableInt | public static String base10toBase100SortableInt(String val)(Code) | | |
base10toBase100SortableInt | public static int base10toBase100SortableInt(char[] arr, int start, int end, char[] out, int outend)(Code) | | FUTURE
// the zero exponent... exponents above this point are positive
// and below are negative.
// It is desirable to make ordinary numbers have a single byte
// exponent when converted to UTF-8
// For integers, the exponent will always be >=0, but this format
// is meant to be valid for floating point numbers as well...
private static final int ZERO_EXPONENT='a'; // 97
// if exponent is larger than what can be represented
// in a single byte (char), then this is the multibyte
// escape char.
// UCS-2 surrogates start at 0xD800
private static final int POSITIVE_EXPONENT_ESCAPE=0x3fff;
// if exponent is smaller than what can be represented in
// a single byte, then this is the multibyte escape
private static final int NEGATIVE_EXPONENT_ESCAPE=1;
// if number is negative, it starts with this optional value
// this should not overlap with any exponent values
private static final int NEGATIVE_SIGN=0;
|
base10toBase10kSortableInt | public static String base10toBase10kSortableInt(String val)(Code) | | |
base10toBase10kSortableInt | public static int base10toBase10kSortableInt(char[] arr, int start, int end, char[] out, int outend)(Code) | | |
|
|