public class ImmutableBTreePartition extends AbstractBTreePartition
AbstractBTreePartition.Holder| Modifier and Type | Field and Description |
|---|---|
protected AbstractBTreePartition.Holder |
holder |
protected TableMetadata |
metadata |
EMPTY, HOLDER_UNSHARED_HEAP_SIZE, partitionKey| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableBTreePartition(TableMetadata metadata,
DecoratedKey partitionKey,
AbstractBTreePartition.Holder holder) |
|
ImmutableBTreePartition(TableMetadata metadata,
DecoratedKey partitionKey,
RegularAndStaticColumns columns,
Row staticRow,
java.lang.Object[] tree,
DeletionInfo deletionInfo,
EncodingStats stats) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHaveShadowedData() |
static ImmutableBTreePartition |
create(UnfilteredRowIterator iterator)
Creates an
ImmutableBTreePartition holding all the data of the provided iterator. |
static ImmutableBTreePartition |
create(UnfilteredRowIterator iterator,
boolean ordered)
Creates an
ImmutableBTreePartition holding all the data of the provided iterator. |
static ImmutableBTreePartition |
create(UnfilteredRowIterator iterator,
int initialRowCapacity)
Creates an
ImmutableBTreePartition holding all the data of the provided iterator. |
static ImmutableBTreePartition |
create(UnfilteredRowIterator iterator,
int initialRowCapacity,
boolean ordered)
Creates an
ImmutableBTreePartition holding all the data of the provided iterator. |
protected AbstractBTreePartition.Holder |
holder() |
TableMetadata |
metadata() |
build, build, build, columns, deletionInfo, getRow, hasRows, isEmpty, iterator, lastRow, partitionKey, partitionLevelDeletion, rowCount, staticRow, stats, toString, unfilteredIterator, unfilteredIterator, unfilteredIterator, unfilteredIterator, unsafeConstructHolder, unsafeGetEmptyHolderprotected final AbstractBTreePartition.Holder holder
protected final TableMetadata metadata
public ImmutableBTreePartition(TableMetadata metadata, DecoratedKey partitionKey, RegularAndStaticColumns columns, Row staticRow, java.lang.Object[] tree, DeletionInfo deletionInfo, EncodingStats stats)
protected ImmutableBTreePartition(TableMetadata metadata, DecoratedKey partitionKey, AbstractBTreePartition.Holder holder)
public static ImmutableBTreePartition create(UnfilteredRowIterator iterator)
ImmutableBTreePartition holding all the data of the provided iterator.
Warning: Note that this method does not close the provided iterator and it is
up to the caller to do so.iterator - the iterator to gather in memory.public static ImmutableBTreePartition create(UnfilteredRowIterator iterator, boolean ordered)
ImmutableBTreePartition holding all the data of the provided iterator.
Warning: Note that this method does not close the provided iterator and it is
up to the caller to do so.iterator - the iterator to gather in memory.ordered - true if the iterator will return the rows in order, false otherwise.public static ImmutableBTreePartition create(UnfilteredRowIterator iterator, int initialRowCapacity)
ImmutableBTreePartition holding all the data of the provided iterator.
Warning: Note that this method does not close the provided iterator and it is
up to the caller to do so.iterator - the iterator to gather in memory.initialRowCapacity - sizing hint (in rows) to use for the created partition. It should ideally
correspond or be a good estimation of the number or rows in iterator.public static ImmutableBTreePartition create(UnfilteredRowIterator iterator, int initialRowCapacity, boolean ordered)
ImmutableBTreePartition holding all the data of the provided iterator.
Warning: Note that this method does not close the provided iterator and it is
up to the caller to do so.iterator - the iterator to gather in memory.initialRowCapacity - sizing hint (in rows) to use for the created partition. It should ideally
correspond or be a good estimation of the number or rows in iterator.ordered - true if the iterator will return the rows in order, false otherwise.public TableMetadata metadata()
metadata in interface Partitionmetadata in class AbstractBTreePartitionprotected AbstractBTreePartition.Holder holder()
holder in class AbstractBTreePartitionprotected boolean canHaveShadowedData()
canHaveShadowedData in class AbstractBTreePartitionCopyright © 2009-2022 The Apache Software Foundation