Package io.trino.spi.block
Class ColumnarRow
- java.lang.Object
-
- io.trino.spi.block.ColumnarRow
-
public final class ColumnarRow extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Block
getField(int index)
Gets the specified field for all rows as a column.int
getFieldCount()
int
getPositionCount()
boolean
isNull(int position)
boolean
mayHaveNull()
static ColumnarRow
toColumnarRow(Block block)
-
-
-
Method Detail
-
toColumnarRow
public static ColumnarRow toColumnarRow(Block block)
-
getPositionCount
public int getPositionCount()
-
mayHaveNull
public boolean mayHaveNull()
-
isNull
public boolean isNull(int position)
-
getFieldCount
public int getFieldCount()
-
getField
public Block getField(int index)
Gets the specified field for all rows as a column.Note: A null row will not have an entry in the block, so the block will be the size of the non-null rows. This block may still contain null values when the row is non-null but the field value is null.
-
-