Class SqlRowBigArray
java.lang.Object
io.trino.array.SqlRowBigArray
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureCapacity
(long length) Ensures this big array is at least the specified length.get
(long index) Returns the element of this big array at specified index.void
Sets the element of this big array at specified index.long
sizeOf()
Returns the size of this big array in bytes.
-
Constructor Details
-
SqlRowBigArray
public SqlRowBigArray() -
SqlRowBigArray
-
-
Method Details
-
sizeOf
public long sizeOf()Returns the size of this big array in bytes. -
get
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
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.
-