Interface NormalizedKeyComputer
- 
public interface NormalizedKeyComputerNormalized key computer forBinaryInMemorySortBuffer. For performance, subclasses are usually implemented through CodeGenerator. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcompareKey(org.apache.flink.core.memory.MemorySegment segI, int offsetI, org.apache.flink.core.memory.MemorySegment segJ, int offsetJ)Compares two normalized keys in respectiveMemorySegment.intgetNumKeyBytes()Get normalized keys bytes length.booleaninvertKey()Flag whether normalized key comparisons should be inverted key.booleanisKeyFullyDetermines()whether the normalized key can fully determines the comparison.voidputKey(org.apache.flink.table.data.RowData record, org.apache.flink.core.memory.MemorySegment target, int offset)Writes a normalized key for the given record into the targetMemorySegment.voidswapKey(org.apache.flink.core.memory.MemorySegment segI, int offsetI, org.apache.flink.core.memory.MemorySegment segJ, int offsetJ)Swaps two normalized keys in respectiveMemorySegment. 
 - 
 
- 
- 
Method Detail
- 
putKey
void putKey(org.apache.flink.table.data.RowData record, org.apache.flink.core.memory.MemorySegment target, int offset)Writes a normalized key for the given record into the targetMemorySegment. 
- 
compareKey
int compareKey(org.apache.flink.core.memory.MemorySegment segI, int offsetI, org.apache.flink.core.memory.MemorySegment segJ, int offsetJ)Compares two normalized keys in respectiveMemorySegment. 
- 
swapKey
void swapKey(org.apache.flink.core.memory.MemorySegment segI, int offsetI, org.apache.flink.core.memory.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. 
 - 
 
 -