public class ArrayBackedPartition extends AbstractThreadUnsafePartition
columns, key, metadata, rows| Modifier | Constructor and Description |
|---|---|
protected |
ArrayBackedPartition(CFMetaData metadata,
DecoratedKey partitionKey,
PartitionColumns columns,
Row staticRow,
java.util.List<Row> rows,
DeletionInfo deletionInfo,
EncodingStats stats) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHaveShadowedData() |
static ArrayBackedPartition |
create(UnfilteredRowIterator iterator)
Creates an
ArrayBackedPartition holding all the data of the provided iterator. |
static ArrayBackedPartition |
create(UnfilteredRowIterator iterator,
int initialRowCapacity)
Creates an
ArrayBackedPartition holding all the data of the provided iterator. |
DeletionInfo |
deletionInfo()
The deletion info for the partition update.
|
Row |
staticRow() |
EncodingStats |
stats() |
columns, getRow, isEmpty, iterator, metadata, partitionKey, partitionLevelDeletion, rowCount, searchIterator, sliceableUnfilteredIterator, sliceableUnfilteredIterator, toString, unfilteredIterator, unfilteredIteratorprotected ArrayBackedPartition(CFMetaData metadata, DecoratedKey partitionKey, PartitionColumns columns, Row staticRow, java.util.List<Row> rows, DeletionInfo deletionInfo, EncodingStats stats)
public static ArrayBackedPartition create(UnfilteredRowIterator iterator)
ArrayBackedPartition 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 ArrayBackedPartition create(UnfilteredRowIterator iterator, int initialRowCapacity)
ArrayBackedPartition 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.protected boolean canHaveShadowedData()
canHaveShadowedData in class AbstractThreadUnsafePartitionpublic Row staticRow()
staticRow in class AbstractThreadUnsafePartitionpublic DeletionInfo deletionInfo()
AbstractThreadUnsafePartitionMutableDeletionInfo to modify it!deletionInfo in class AbstractThreadUnsafePartitionpublic EncodingStats stats()
Copyright © 2015 The Apache Software Foundation