Example usage for org.apache.cassandra.db.rows RowIterator staticRow

List of usage examples for org.apache.cassandra.db.rows RowIterator staticRow

Introduction

In this page you can find the example usage for org.apache.cassandra.db.rows RowIterator staticRow.

Prototype

public Row staticRow();

Source Link

Document

The static part corresponding to this partition (this can be an empty row but cannot be null ).

Usage

From source file:com.stratio.cassandra.lucene.util.SimpleRowIterator.java

License:Apache License

/**
 * Builds a new {@link SimpleRowIterator} from the current position of the specified {@link RowIterator}. Any other
 * rows in the specified iterator won't be read.
 *
 * @param iterator the {@link Row} iterator
 *//*from  w  ww  .  j a v  a  2  s.c  o m*/
public SimpleRowIterator(RowIterator iterator) {
    this.metadata = iterator.metadata();
    this.key = iterator.partitionKey();
    this.columns = iterator.columns();
    this.staticRow = iterator.staticRow();
    this.row = iterator.next();
    this.rows = Collections.singletonList(row).iterator();
}