public interface NormalizedKeyComputer
BinaryInMemorySortBuffer
.
For performance, subclasses are usually implemented through CodeGenerator.Modifier and Type | Method and Description |
---|---|
int |
compareKey(MemorySegment segI,
int offsetI,
MemorySegment segJ,
int offsetJ)
Compares two normalized keys in respective
MemorySegment . |
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(BaseRow record,
MemorySegment target,
int offset)
Writes a normalized key for the given record into the target
MemorySegment . |
void |
swapKey(MemorySegment segI,
int offsetI,
MemorySegment segJ,
int offsetJ)
Swaps two normalized keys in respective
MemorySegment . |
void putKey(BaseRow record, MemorySegment target, int offset)
MemorySegment
.int compareKey(MemorySegment segI, int offsetI, MemorySegment segJ, int offsetJ)
MemorySegment
.void swapKey(MemorySegment segI, int offsetI, MemorySegment segJ, int offsetJ)
MemorySegment
.int getNumKeyBytes()
boolean isKeyFullyDetermines()
boolean invertKey()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.