Package io.trino.spi
Class Page
java.lang.Object
io.trino.spi.Page
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendColumn(Block block) voidcompact()copyPositions(int[] retainedPositions, int offset, int length) getBlock(int channel) intgetColumns(int column) getColumns(int... columns) static longgetInstanceSizeInBytes(int blockCount) Returns a page that assures all data is in memory.getLoadedPage(int column) getLoadedPage(int... columns) getLoadedPage(int[] columns, int[] eagerlyLoadedColumns) longintgetPositions(int[] retainedPositions, int offset, int length) getRegion(int positionOffset, int length) longgetSingleValuePage(int position) Gets the values at the specified position as a single element page.longprependColumn(Block column) toString()
-
Field Details
-
INSTANCE_SIZE
public static final int INSTANCE_SIZE
-
-
Constructor Details
-
Page
-
Page
public Page(int positionCount) -
Page
-
-
Method Details
-
getInstanceSizeInBytes
public static long getInstanceSizeInBytes(int blockCount) -
getChannelCount
public int getChannelCount() -
getPositionCount
public int getPositionCount() -
getSizeInBytes
public long getSizeInBytes() -
getLogicalSizeInBytes
public long getLogicalSizeInBytes() -
getRetainedSizeInBytes
public long getRetainedSizeInBytes() -
getBlock
-
getSingleValuePage
Gets the values at the specified position as a single element page. The method creates independent copy of the data. -
getRegion
-
appendColumn
-
compact
public void compact() -
getLoadedPage
Returns a page that assures all data is in memory. May return the same page if all page data is already in memory.This allows streaming data sources to skip sections that are not accessed in a query.
-
getLoadedPage
-
getLoadedPage
-
getLoadedPage
-
toString
-
getPositions
-
copyPositions
-
getColumns
-
getColumns
-
prependColumn
-