Class SqlMapBigArray

java.lang.Object
io.trino.array.SqlMapBigArray

public final class SqlMapBigArray extends Object
  • Constructor Details

    • SqlMapBigArray

      public SqlMapBigArray()
    • SqlMapBigArray

      public SqlMapBigArray(SqlMap sqlMap)
  • Method Details

    • sizeOf

      public long sizeOf()
      Returns the size of this big array in bytes.
    • get

      public SqlMap get(long index)
      Returns the element of this big array at specified index.
      Parameters:
      index - a position in this big array.
      Returns:
      the element of this big array at the specified position.
    • set

      public void set(long index, SqlMap value)
      Sets the element of this big array at specified index.
      Parameters:
      index - a position in this big array.
    • ensureCapacity

      public void ensureCapacity(long length)
      Ensures this big array is at least the specified length. If the array is smaller, segments are added until the array is larger then the specified length.