Class MutationWriter (0.27.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public class MutationWriter implements Callable<StatementResult> , Closeable
Constructors
public MutationWriter ( SessionState sessionState , MutationWriter . CopyTransactionMode transactionMode , Connection connection , String qualifiedTableName , Map<String , Type > tableColumns , int indexedColumnsCount , CopyStatement . Format copyFormat , CSVFormat format , boolean hasHeader )
Methods
addCopyData(byte[] payload)
public void addCopyData ( byte [] payload )
Parameter
Name
Description
payload
byte []
call()
public StatementResult call ()
close()
commit()
Indicate that this mutation writer should commit.
getRowCount()
public long getRowCount ()
Returns
Type
Description
long
number of rows copied into Spanner
rollback()
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 .
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-09 UTC.
[null,null,["Last updated 2026-03-09 UTC."],[],[]]