Class SliceBigArray

java.lang.Object
io.trino.array.SliceBigArray

public final class SliceBigArray extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SliceBigArray(io.airlift.slice.Slice slice)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ensureCapacity(long length)
    Ensures this big array is at least the specified length.
    io.airlift.slice.Slice
    get(long index)
    Returns the element of this big array at specified index.
    void
    set(long index, io.airlift.slice.Slice value)
    Sets the element of this big array at specified index.
    long
    Returns the size of this big array in bytes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SliceBigArray

      public SliceBigArray()
    • SliceBigArray

      public SliceBigArray(io.airlift.slice.Slice slice)
  • Method Details

    • sizeOf

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

      public io.airlift.slice.Slice 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, io.airlift.slice.Slice 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.