Search in sources :

Example 6 with RegularAndStaticColumns

use of org.apache.cassandra.db.RegularAndStaticColumns in project cassandra by apache.

the class PartitionIteratorMergeListener method columns.

protected RegularAndStaticColumns columns(List<UnfilteredRowIterator> versions) {
    Columns statics = Columns.NONE;
    Columns regulars = Columns.NONE;
    for (UnfilteredRowIterator iter : versions) {
        if (iter == null)
            continue;
        RegularAndStaticColumns cols = iter.columns();
        statics = statics.mergeTo(cols.statics);
        regulars = regulars.mergeTo(cols.regulars);
    }
    return new RegularAndStaticColumns(statics, regulars);
}
Also used : UnfilteredRowIterator(org.apache.cassandra.db.rows.UnfilteredRowIterator) Columns(org.apache.cassandra.db.Columns) RegularAndStaticColumns(org.apache.cassandra.db.RegularAndStaticColumns) RegularAndStaticColumns(org.apache.cassandra.db.RegularAndStaticColumns)

Aggregations

RegularAndStaticColumns (org.apache.cassandra.db.RegularAndStaticColumns)6 DecoratedKey (org.apache.cassandra.db.DecoratedKey)3 UnfilteredRowIterator (org.apache.cassandra.db.rows.UnfilteredRowIterator)3 ArrayList (java.util.ArrayList)2 Columns (org.apache.cassandra.db.Columns)2 DeletionTime (org.apache.cassandra.db.DeletionTime)2 EncodingStats (org.apache.cassandra.db.rows.EncodingStats)2 Row (org.apache.cassandra.db.rows.Row)2 ColumnMetadata (org.apache.cassandra.schema.ColumnMetadata)2 ByteBuffer (java.nio.ByteBuffer)1 List (java.util.List)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 ColumnIdentifier (org.apache.cassandra.cql3.ColumnIdentifier)1 CompactionInterruptedException (org.apache.cassandra.db.compaction.CompactionInterruptedException)1 SingletonUnfilteredPartitionIterator (org.apache.cassandra.db.partitions.SingletonUnfilteredPartitionIterator)1 UnfilteredPartitionIterator (org.apache.cassandra.db.partitions.UnfilteredPartitionIterator)1 BTreeRow (org.apache.cassandra.db.rows.BTreeRow)1 BufferCell (org.apache.cassandra.db.rows.BufferCell)1 RangeTombstoneMarker (org.apache.cassandra.db.rows.RangeTombstoneMarker)1 Unfiltered (org.apache.cassandra.db.rows.Unfiltered)1