Class CassandraDatabaseWriter
java.lang.Object
org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriter
org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriter
org.jumpmind.symmetric.io.data.writer.DynamicDefaultDatabaseWriter
org.jumpmind.symmetric.io.data.writer.CassandraDatabaseWriter
- All Implemented Interfaces:
IDataResource,IDataWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriter
AbstractDatabaseWriter.LoadStatus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.gson.Gsonprotected com.datastax.driver.core.PreparedStatementprotected com.datastax.driver.core.SessionFields inherited from class org.jumpmind.symmetric.io.data.writer.DynamicDefaultDatabaseWriter
tablePrefix, targetPlatform, targetTransactionFields inherited from class org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriter
CUR_DATA, currentDmlStatement, currentDmlValues, hasUncommittedDdl, isCteExpression, logSqlBuilder, platform, transactionFields inherited from class org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriter
batch, CONFLICT_ERROR, CONFLICT_IGNORE, conflictResolver, context, isRequiresSavePointsInTransaction, lastApplyChangesOnly, lastData, lastUseConflictDetection, missingTables, sourceTable, statistics, targetTable, targetTables, TRANSACTION_ABORTED, uncommittedCount, writerSettings -
Constructor Summary
ConstructorsConstructorDescriptionCassandraDatabaseWriter(IDatabasePlatform symmetricPlatform, IDatabasePlatform targetPlatform, String prefix, IDatabaseWriterConflictResolver conflictResolver, DatabaseWriterSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidallowInsertIntoAutoIncrementColumns(boolean value, Table table) protected voidbindVariables(com.datastax.driver.core.BoundStatement bstmt, Column[] columns, int[] types, String[] values) protected booleanprotected intprotected booleanisUserSendSql(String sql, CsvData data) protected voidlogFailureDetails(Throwable e, CsvData data, boolean logLastDmlDetails) protected TablelookupTableAtTarget(Table sourceTable) protected Listprotected Mapprotected Setprotected voidprepare()protected voidintprepareAndExecute(String sql, CsvData data) Methods inherited from class org.jumpmind.symmetric.io.data.writer.DynamicDefaultDatabaseWriter
close, commit, getPlatform, getPlatform, getPlatform, getTablePrefix, getTargetPlatform, getTargetTransaction, getTransaction, getTransaction, getTransaction, isLoadOnly, isSymmetricTable, isSymmetricTable, open, rollbackMethods inherited from class org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriter
bindVariables, commit, containsNullLookupKeyDataSinceLastStatement, create, delete, dmlValuesToString, doesColumnNeedUpdated, end, end, getCurData, getCurrentDmlStatement, getSqlStatements, getTableKey, getWriterSettings, insert, isCteExpression, logDataTruncation, lookupTableFromCache, preprocessSqlStatement, putTableInCache, quoteString, replaceCteExpression, requireNewStatement, sql, start, targetTableWasChangedByFilter, update, updateChangedDataIndicatorMethods inherited from class org.jumpmind.symmetric.io.data.writer.AbstractDatabaseWriter
checkForEarlyCommit, filterAfter, filterBefore, filterError, getBatch, getConflictResolver, getContext, getLookupDataMap, getPkDataFor, getRowData, getSourceTable, getStatistics, getTargetTable, hasFilterThatHandlesMissingTable, notifyFiltersBatchCommitted, notifyFiltersBatchComplete, notifyFiltersBatchRolledback, notifyFiltersEarlyCommit, script, setConflictResolver, start, write
-
Field Details
-
gson
protected com.google.gson.Gson gson -
session
protected com.datastax.driver.core.Session session -
metaData
-
pstmt
protected com.datastax.driver.core.PreparedStatement pstmt
-
-
Constructor Details
-
CassandraDatabaseWriter
public CassandraDatabaseWriter(IDatabasePlatform symmetricPlatform, IDatabasePlatform targetPlatform, String prefix, IDatabaseWriterConflictResolver conflictResolver, DatabaseWriterSettings settings)
-
-
Method Details
-
prepare
protected void prepare()- Overrides:
preparein classDefaultDatabaseWriter
-
prepare
- Overrides:
preparein classDefaultDatabaseWriter
-
isUserSendSql
-
prepareAndExecute
- Overrides:
prepareAndExecutein classDefaultDatabaseWriter
-
execute
- Overrides:
executein classDefaultDatabaseWriter
-
lookupTableAtTarget
- Overrides:
lookupTableAtTargetin classDefaultDatabaseWriter
-
create
- Overrides:
createin classDefaultDatabaseWriter
-
logFailureDetails
- Overrides:
logFailureDetailsin classDefaultDatabaseWriter
-
allowInsertIntoAutoIncrementColumns
- Overrides:
allowInsertIntoAutoIncrementColumnsin classDefaultDatabaseWriter
-
bindVariables
-
parseList
-
parseSet
-
parseMap
-