Package io.trino.array
Class BlockBigArray
- java.lang.Object
-
- io.trino.array.BlockBigArray
-
public final class BlockBigArray extends Object
-
-
Constructor Summary
Constructors Constructor Description BlockBigArray()
BlockBigArray(Block block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ensureCapacity(long length)
Ensures this big array is at least the specified length.Block
get(long index)
Returns the element of this big array at specified index.void
set(long index, Block value)
Sets the element of this big array at specified index.long
sizeOf()
Returns the size of this big array in bytes.
-
-
-
Constructor Detail
-
BlockBigArray
public BlockBigArray()
-
BlockBigArray
public BlockBigArray(Block block)
-
-
Method Detail
-
sizeOf
public long sizeOf()
Returns the size of this big array in bytes.
-
get
public Block 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, Block 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.
-
-