public final class Page extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
INSTANCE_SIZE |
| Constructor and Description |
|---|
Page(Block... blocks) |
Page(int positionCount) |
Page(int positionCount,
Block... blocks) |
| Modifier and Type | Method and Description |
|---|---|
Page |
appendColumn(Block block) |
Page |
compact() |
Page |
copyPositions(int[] retainedPositions,
int offset,
int length) |
Page |
dropColumn(int channelIndex) |
Page |
extractChannel(int channel) |
Page |
extractChannels(int[] channels) |
long |
getApproximateLogicalSizeInBytes()
Returns the approximate logical size of the page if logicalSizeInBytes was not calculated before.
|
Block |
getBlock(int channel) |
int |
getChannelCount() |
Page |
getLoadedPage()
Returns a page that assures all data is in memory.
|
Page |
getLoadedPage(int... channels) |
Page |
getLoadedPage(int channel) |
long |
getLogicalSizeInBytes() |
int |
getPositionCount() |
Page |
getPositions(int[] retainedPositions,
int offset,
int length) |
Page |
getRegion(int positionOffset,
int length) |
long |
getRetainedSizeInBytes() |
Page |
getSingleValuePage(int position)
Gets the values at the specified position as a single element page.
|
long |
getSizeInBytes() |
Page |
prependColumn(Block column) |
String |
toString() |
static Page |
wrapBlocksWithoutCopy(int positionCount,
Block[] blocks)
Visible to give trusted classes like
PageBuilder access to a constructor that doesn't
defensively copy the blocks |
public Page(Block... blocks)
public Page(int positionCount)
public Page(int positionCount,
Block... blocks)
public static Page wrapBlocksWithoutCopy(int positionCount, Block[] blocks)
PageBuilder access to a constructor that doesn't
defensively copy the blockspublic int getChannelCount()
public int getPositionCount()
public long getSizeInBytes()
public long getLogicalSizeInBytes()
public long getApproximateLogicalSizeInBytes()
public long getRetainedSizeInBytes()
public Block getBlock(int channel)
public Page getSingleValuePage(int position)
public Page getRegion(int positionOffset, int length)
public Page compact()
public Page getLoadedPage()
This allows streaming data sources to skip sections that are not accessed in a query.
public Page getLoadedPage(int channel)
public Page getLoadedPage(int... channels)
public Page getPositions(int[] retainedPositions, int offset, int length)
public Page copyPositions(int[] retainedPositions, int offset, int length)
public Page extractChannel(int channel)
public Page extractChannels(int[] channels)
public Page dropColumn(int channelIndex)
Copyright © 2012–2022. All rights reserved.