Class AsyncCqlTemplate.AsyncRowCallbackHandlerResultSetExtractor
java.lang.Object
org.springframework.data.cassandra.core.cql.AsyncCqlTemplate.AsyncRowCallbackHandlerResultSetExtractor
- All Implemented Interfaces:
AsyncResultSetExtractor<Void>
- Enclosing class:
- AsyncCqlTemplate
protected static class AsyncCqlTemplate.AsyncRowCallbackHandlerResultSetExtractor
extends Object
implements AsyncResultSetExtractor<Void>
Adapter to enable use of a
RowCallbackHandler
inside a ResultSetExtractor
.-
Constructor Summary
ModifierConstructorDescriptionprotected
AsyncRowCallbackHandlerResultSetExtractor
(RowCallbackHandler rowCallbackHandler) -
Method Summary
Modifier and TypeMethodDescriptionextractData
(com.datastax.oss.driver.api.core.cql.AsyncResultSet resultSet) Implementations must implement this method to process the entireAsyncResultSet
.
-
Constructor Details
-
AsyncRowCallbackHandlerResultSetExtractor
-
-
Method Details
-
extractData
public CompletableFuture<Void> extractData(com.datastax.oss.driver.api.core.cql.AsyncResultSet resultSet) Description copied from interface:AsyncResultSetExtractor
Implementations must implement this method to process the entireAsyncResultSet
.- Specified by:
extractData
in interfaceAsyncResultSetExtractor<Void>
- Parameters:
resultSet
-AsyncResultSet
to extract data from.- Returns:
- an arbitrary result object, or null if none (the extractor will typically be stateful in the latter case).
-