public class ImmutableBTreePartition extends AbstractBTreePartition
AbstractBTreePartition.Holder, AbstractBTreePartition.SliceableIterator, AbstractBTreePartition.SlicesIterator
Modifier and Type | Field and Description |
---|---|
protected AbstractBTreePartition.Holder |
holder |
EMPTY, metadata, partitionKey
Modifier | Constructor and Description |
---|---|
protected |
ImmutableBTreePartition(CFMetaData metadata,
DecoratedKey partitionKey,
AbstractBTreePartition.Holder holder) |
|
ImmutableBTreePartition(CFMetaData metadata,
DecoratedKey partitionKey,
PartitionColumns 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() |
build, build, build, columns, deletionInfo, getRow, hasRows, isEmpty, iterator, lastRow, metadata, partitionKey, partitionLevelDeletion, rowCount, searchIterator, sliceableUnfilteredIterator, sliceableUnfilteredIterator, staticRow, stats, toString, unfilteredIterator, unfilteredIterator, unfilteredIterator
protected final AbstractBTreePartition.Holder holder
public ImmutableBTreePartition(CFMetaData metadata, DecoratedKey partitionKey, PartitionColumns columns, Row staticRow, java.lang.Object[] tree, DeletionInfo deletionInfo, EncodingStats stats)
protected ImmutableBTreePartition(CFMetaData 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.protected AbstractBTreePartition.Holder holder()
holder
in class AbstractBTreePartition
protected boolean canHaveShadowedData()
canHaveShadowedData
in class AbstractBTreePartition
Copyright © 2017 The Apache Software Foundation