Interface NormalizedKeyComputer
-
public interface NormalizedKeyComputer
Normalized key computer forBinaryInMemorySortBuffer
. For performance, subclasses are usually implemented through CodeGenerator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compareKey(MemorySegment segI, int offsetI, MemorySegment segJ, int offsetJ)
Compares two normalized keys in respectiveMemorySegment
.int
getNumKeyBytes()
Get normalized keys bytes length.boolean
invertKey()
Flag whether normalized key comparisons should be inverted key.boolean
isKeyFullyDetermines()
whether the normalized key can fully determines the comparison.void
putKey(RowData record, MemorySegment target, int offset)
Writes a normalized key for the given record into the targetMemorySegment
.void
swapKey(MemorySegment segI, int offsetI, MemorySegment segJ, int offsetJ)
Swaps two normalized keys in respectiveMemorySegment
.
-
-
-
Method Detail
-
putKey
void putKey(RowData record, MemorySegment target, int offset)
Writes a normalized key for the given record into the targetMemorySegment
.
-
compareKey
int compareKey(MemorySegment segI, int offsetI, MemorySegment segJ, int offsetJ)
Compares two normalized keys in respectiveMemorySegment
.
-
swapKey
void swapKey(MemorySegment segI, int offsetI, MemorySegment segJ, int offsetJ)
Swaps two normalized keys in respectiveMemorySegment
.
-
getNumKeyBytes
int getNumKeyBytes()
Get normalized keys bytes length.
-
isKeyFullyDetermines
boolean isKeyFullyDetermines()
whether the normalized key can fully determines the comparison.
-
invertKey
boolean invertKey()
Flag whether normalized key comparisons should be inverted key.
-
-