Package io.trino.spi.block
Class SqlMap
java.lang.Object
io.trino.spi.block.SqlMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlongintgetSize()longintgetUnderlyingKeyPosition(int position) intgetUnderlyingValuePosition(int position) voidretainedBytesForEachPart(ObjLongConsumer<Object> consumer) intseekKey(MethodHandle keyEqualOperator, MethodHandle keyHashOperator, Block targetKeyBlock, int targetKeyPosition) intintseekKeyExact(boolean nativeValue) intseekKeyExact(double nativeValue) intseekKeyExact(long nativeValue) intseekKeyExact(Object nativeValue) toString()
-
Constructor Details
-
SqlMap
-
SqlMap
-
-
Method Details
-
getMapType
-
getSize
public int getSize() -
getRawOffset
public int getRawOffset() -
getRawKeyBlock
-
getRawValueBlock
-
getUnderlyingKeyPosition
public int getUnderlyingKeyPosition(int position) -
getUnderlyingKeyBlock
-
getUnderlyingValuePosition
public int getUnderlyingValuePosition(int position) -
getUnderlyingValueBlock
-
toString
-
seekKey
- Returns:
- position of the value under
nativeValuekey. -1 when key is not found.
-
seekKey
public int seekKey(MethodHandle keyEqualOperator, MethodHandle keyHashOperator, Block targetKeyBlock, int targetKeyPosition) -
seekKeyExact
public int seekKeyExact(long nativeValue) -
seekKeyExact
public int seekKeyExact(boolean nativeValue) -
seekKeyExact
public int seekKeyExact(double nativeValue) -
seekKeyExact
-
getSizeInBytes
public long getSizeInBytes() -
getRetainedSizeInBytes
public long getRetainedSizeInBytes() -
retainedBytesForEachPart
-