Class SqlMap

java.lang.Object
io.trino.spi.block.SqlMap

public class SqlMap extends Object
  • Constructor Details

  • Method Details

    • getMapType

      public Type getMapType()
    • getSize

      public int getSize()
    • getRawOffset

      public int getRawOffset()
    • getRawKeyBlock

      public Block getRawKeyBlock()
    • getRawValueBlock

      public Block getRawValueBlock()
    • getUnderlyingKeyPosition

      public int getUnderlyingKeyPosition(int position)
    • getUnderlyingKeyBlock

      public ValueBlock getUnderlyingKeyBlock()
    • getUnderlyingValuePosition

      public int getUnderlyingValuePosition(int position)
    • getUnderlyingValueBlock

      public ValueBlock getUnderlyingValueBlock()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • seekKey

      public int seekKey(Object nativeValue)
      Returns:
      position of the value under nativeValue key. -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

      public int seekKeyExact(Object nativeValue)
    • getSizeInBytes

      public long getSizeInBytes()
    • getRetainedSizeInBytes

      public long getRetainedSizeInBytes()
    • retainedBytesForEachPart

      public void retainedBytesForEachPart(ObjLongConsumer<Object> consumer)