Class MutationWriter (0.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass MutationWriterimplementsCallable<StatementResult>,CloseableInherited Members
Constructors
MutationWriter(SessionState sessionState, MutationWriter.CopyTransactionMode transactionMode, Connection connection, String qualifiedTableName, Map<String,Type> tableColumns, int indexedColumnsCount, CopyStatement.Format copyFormat, CSVFormat format, boolean hasHeader)
publicMutationWriter(SessionStatesessionState,MutationWriter.CopyTransactionModetransactionMode,Connectionconnection,StringqualifiedTableName,Map<String,Type>tableColumns,intindexedColumnsCount,CopyStatement.FormatcopyFormat,CSVFormatformat,booleanhasHeader) Name
Description
format
org.apache.commons.csv.CSVFormatMethods
addCopyData(byte[] payload)
publicvoidaddCopyData(byte[]payload) Name
Description
call()
publicStatementResultcall() Type
Description
Exceptions
Type
Description
close()
publicvoidclose() Type
Description
commit()
publicvoidcommit()Indicate that this mutation writer should commit.
getRowCount()
publiclonggetRowCount() Type
Description
long
number of rows copied into Spanner
rollback()
publicvoidrollback()Indicate that this mutation writer should be rolled back. This will not rollback any changes that have already been committed if the mutation writer is running in CopyTransactionMode#ImplicitNonAtomic.