List of usage examples for org.apache.cassandra.db.rows Row isStatic
public boolean isStatic();
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)); } } }