public class PageBuilder extends Object
| Constructor and Description |
|---|
PageBuilder(int initialExpectedEntries,
List<? extends Type> types) |
PageBuilder(List<? extends Type> types) |
| Modifier and Type | Method and Description |
|---|---|
Page |
build() |
void |
declarePosition()
Hack to declare positions when producing a page with no channels
|
void |
declarePositions(int positions) |
BlockBuilder |
getBlockBuilder(int channel) |
int |
getPositionCount() |
long |
getRetainedSizeInBytes() |
long |
getSizeInBytes() |
Type |
getType(int channel) |
boolean |
isEmpty() |
boolean |
isFull() |
void |
reset() |
static PageBuilder |
withMaxPageSize(int maxPageBytes,
List<? extends Type> types) |
public static PageBuilder withMaxPageSize(int maxPageBytes, List<? extends Type> types)
public void reset()
public Type getType(int channel)
public BlockBuilder getBlockBuilder(int channel)
public void declarePosition()
public void declarePositions(int positions)
public boolean isFull()
public boolean isEmpty()
public int getPositionCount()
public long getSizeInBytes()
public long getRetainedSizeInBytes()
public Page build()
Copyright © 2012-2016. All Rights Reserved.