public class CassandraAsserts
extends java.lang.Object
Constructor and Description |
---|
CassandraAsserts() |
Modifier and Type | Method and Description |
---|---|
static org.apache.beam.it.truthmatchers.RecordsSubject |
assertThatCassandraRecords(java.lang.Iterable<com.datastax.oss.driver.api.core.cql.Row> rows)
Creates a
RecordsSubject to assert information within a list of records. |
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
cassandraRowsToRecords(java.lang.Iterable<com.datastax.oss.driver.api.core.cql.Row> rows)
Convert Cassandra
Row list to a list of maps. |
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> cassandraRowsToRecords(java.lang.Iterable<com.datastax.oss.driver.api.core.cql.Row> rows)
Row
list to a list of maps.rows
- Rows to parse.RecordsSubject
.public static org.apache.beam.it.truthmatchers.RecordsSubject assertThatCassandraRecords(java.lang.Iterable<com.datastax.oss.driver.api.core.cql.Row> rows)
RecordsSubject
to assert information within a list of records.rows
- Records in Cassandra's Row
format to use in the comparison.