Example usage for org.apache.cassandra.db.rows Row isStatic

List of usage examples for org.apache.cassandra.db.rows Row isStatic

Introduction

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

Prototype

public boolean isStatic();

Source Link

Document

Whether the row correspond to a static row or not.

Usage

From source file:com.stratio.cassandra.lucene.IndexWriterWide.java

License:Apache License

/** {@inheritDoc} */
@Override/*w  w w. jav a  2s.  c  o m*/
protected void index(Row row) {
    if (!row.isStatic()) {
        Clustering clustering = row.clustering();
        if (service.needsReadBeforeWrite(key, row)) {
            rowsToRead.add(clustering);
            rows.put(clustering, Optional.empty());
        } else {
            rows.put(clustering, Optional.of(row));
        }
    }
}

From source file:io.puntanegra.fhir.index.FhirIndexIndexer.java

License:Apache License

/**
 * Temporally store the row to be indexed in a map.
 *
 * @param row/*from   www  .ja  v a2 s.  c  o  m*/
 *            the row to be indexed.
 */
public void index(Row row) {
    if (!row.isStatic()) {
        Clustering clustering = row.clustering();
        if (service.needsReadBeforeWrite(key, row)) {
            rows.put(clustering, Optional.empty());
        } else {
            rows.put(clustering, Optional.of(row));
        }
    }
}