@FunctionalInterface public interface RowCallbackHandler
CqlTemplatefor processing rows of a
ResultSeton a per-row basis. Implementations of this interface perform the actual work of processing each row but don't need to worry about exception handling.
DriverExceptions will be caught and handled by the calling
Consider using a
RowMapper instead if you need to map exactly one result object per row, assembling them into
void processRow(com.datastax.oss.driver.api.core.cql.Row row) throws com.datastax.oss.driver.api.core.DriverException
ResultSet. This method is only supposed to extract values of the current row.
Exactly what the implementation chooses to do is up to it: A trivial implementation might simply count rows, while another implementation might build an XML document.
Rowto process (pre-initialized for the current row).
com.datastax.oss.driver.api.core.DriverException- if a
DriverExceptionis encountered getting column values (that is, there's no need to catch
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.