Package org.apache.accumulo.core.util
Class FastFormat
- java.lang.Object
-
- org.apache.accumulo.core.util.FastFormat
-
public class FastFormat extends Object
-
-
Constructor Summary
Constructors Constructor Description FastFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toHexString(long hexadecimal)
Create a zero padded string from a hexadecimal number.static String
toHexString(String prefix, long hexadecimal, String suffix)
Create a zero padded string from a hexadecimal number.static byte[]
toZeroPaddedHex(long hexadecimal)
static int
toZeroPaddedString(byte[] output, int outputOffset, long num, int width, int radix, byte[] prefix)
static byte[]
toZeroPaddedString(long num, int width, int radix, byte[] prefix)
-
-
-
Method Detail
-
toZeroPaddedString
public static byte[] toZeroPaddedString(long num, int width, int radix, byte[] prefix)
-
toZeroPaddedHex
public static byte[] toZeroPaddedHex(long hexadecimal)
-
toZeroPaddedString
public static int toZeroPaddedString(byte[] output, int outputOffset, long num, int width, int radix, byte[] prefix)
-
toHexString
public static String toHexString(String prefix, long hexadecimal, String suffix)
Create a zero padded string from a hexadecimal number. This is a faster replacement for: String.format("%s%016x%s", PREFIX, tid, SUFFIX);
-
toHexString
public static String toHexString(long hexadecimal)
Create a zero padded string from a hexadecimal number. This is a faster replacement for: String.format("%016x", tid)
-
-