@FunctionalInterface public interface KeyspacePopulator
ResourceKeyspacePopulator,
SessionFactoryInitializer| Modifier and Type | Method and Description |
|---|---|
void |
populate(com.datastax.oss.driver.api.core.CqlSession session)
Populate, initialize, or clean up the database using the provided CqlSession connection.
|
void populate(com.datastax.oss.driver.api.core.CqlSession session)
throws ScriptException
Concrete implementations may throw a RuntimeException if an error is encountered but are
strongly encouraged to throw a specific ScriptException instead. For example, Spring's
ResourceKeyspacePopulator wrap all exceptions in ScriptExceptions.
session - the CQL CqlSession to use to populate the keyspace; already configured and ready to use;
never nullScriptException - in all other error casesCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.