public class SortUtil extends Object
Constructor and Description |
---|
SortUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
compareBinary(byte[] a,
byte[] b) |
static int |
compareBinary(byte[] buffer1,
int offset1,
int length1,
byte[] buffer2,
int offset2,
int length2) |
static void |
maxNormalizedKey(MemorySegment target,
int offset,
int numBytes)
Max unsigned byte is -1.
|
static void |
minNormalizedKey(MemorySegment target,
int offset,
int numBytes) |
static void |
putBinaryNormalizedKey(byte[] value,
MemorySegment target,
int offset,
int numBytes) |
static void |
putBooleanNormalizedKey(boolean value,
MemorySegment target,
int offset,
int numBytes) |
static void |
putByteNormalizedKey(byte value,
MemorySegment target,
int offset,
int numBytes) |
static void |
putDecimalNormalizedKey(DecimalData record,
MemorySegment target,
int offset,
int len)
Just support the compact precision decimal.
|
static void |
putDoubleNormalizedKey(double value,
MemorySegment target,
int offset,
int numBytes)
See http://stereopsis.com/radix.html for more details.
|
static void |
putFloatNormalizedKey(float value,
MemorySegment target,
int offset,
int numBytes)
See http://stereopsis.com/radix.html for more details.
|
static void |
putIntNormalizedKey(int value,
MemorySegment target,
int offset,
int numBytes) |
static void |
putLongNormalizedKey(long value,
MemorySegment target,
int offset,
int numBytes) |
static void |
putShortNormalizedKey(short value,
MemorySegment target,
int offset,
int numBytes) |
static void |
putStringNormalizedKey(StringData value,
MemorySegment target,
int offset,
int numBytes)
UTF-8 supports bytes comparison.
|
static void |
putTimestampNormalizedKey(TimestampData value,
MemorySegment target,
int offset,
int numBytes)
Support the compact precision TimestampData.
|
public static void minNormalizedKey(MemorySegment target, int offset, int numBytes)
public static void maxNormalizedKey(MemorySegment target, int offset, int numBytes)
public static void putShortNormalizedKey(short value, MemorySegment target, int offset, int numBytes)
public static void putByteNormalizedKey(byte value, MemorySegment target, int offset, int numBytes)
public static void putBooleanNormalizedKey(boolean value, MemorySegment target, int offset, int numBytes)
public static void putStringNormalizedKey(StringData value, MemorySegment target, int offset, int numBytes)
public static void putDecimalNormalizedKey(DecimalData record, MemorySegment target, int offset, int len)
public static void putIntNormalizedKey(int value, MemorySegment target, int offset, int numBytes)
public static void putLongNormalizedKey(long value, MemorySegment target, int offset, int numBytes)
public static void putFloatNormalizedKey(float value, MemorySegment target, int offset, int numBytes)
public static void putDoubleNormalizedKey(double value, MemorySegment target, int offset, int numBytes)
public static void putBinaryNormalizedKey(byte[] value, MemorySegment target, int offset, int numBytes)
public static void putTimestampNormalizedKey(TimestampData value, MemorySegment target, int offset, int numBytes)
public static int compareBinary(byte[] a, byte[] b)
public static int compareBinary(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.