Class CopyToStatement (0.7.0)

publicclass CopyToStatementextendsIntermediatePortalStatement

CopyStatement models a COPY table TO STDOUT statement. The same class is used both as an IntermediatePreparedStatement and IntermediatePortalStatement, as COPY does not support any statement parameters, which means that there is no difference between the two.

Inherited Members

Static Fields

COPY_BINARY_HEADER

publicstaticfinalbyte[]COPY_BINARY_HEADER
Field Value
Type Description
byte[]

Constructors

CopyToStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, CopyTreeParser.CopyOptions copyOptions)

publicCopyToStatement(ConnectionHandlerconnectionHandler,OptionsMetadataoptions,Stringname,CopyTreeParser.CopyOptionscopyOptions)
Parameters
Name Description
connectionHandler ConnectionHandler
options OptionsMetadata
name String

Methods

bind(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)

publicIntermediatePortalStatementbind(Stringname,byte[][]parameters,List<Short>parameterFormatCodes,List<Short>resultFormatCodes)

Bind this statement (that is to say, transform it into a portal by giving it the data items to complete the statement.

Parameters
Name Description
name String
parameters byte[][]
parameterFormatCodes List<Short>
resultFormatCodes List<Short>
Returns
Type Description
Overrides

containsResultSet()

publicbooleancontainsResultSet()
Returns
Type Description
Overrides

createDataRowResponse(ResultSet resultSet, ConnectionHandler.QueryMode mode)

publicCopyDataResponsecreateDataRowResponse(ResultSetresultSet,ConnectionHandler.QueryModemode)
Parameters
Name Description
resultSet com.google.cloud.spanner.ResultSet
Returns
Type Description
Overrides

createResultPrefix(ResultSet resultSet)

publicWireOutput[]createResultPrefix(ResultSetresultSet)
Parameter
Name Description
resultSet com.google.cloud.spanner.ResultSet
Returns
Type Description
Overrides

createResultSuffix()

publicWireOutput[]createResultSuffix()
Returns
Type Description
Overrides

describeAsync(BackendConnection backendConnection)

publicFuture<DescribePortalMetadata>describeAsync(BackendConnectionbackendConnection)
Parameter
Name Description
backendConnection BackendConnection
Returns
Type Description
Overrides

executeAsync(BackendConnection backendConnection)

publicvoidexecuteAsync(BackendConnectionbackendConnection)
Parameter
Name Description
backendConnection BackendConnection
Overrides

getCommandTag()

publicStringgetCommandTag()
Returns
Type Description
Overrides

getStatementType()

publicAbstractStatementParser.StatementTypegetStatementType()
Returns
Type Description
Overrides

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 2025年10月30日 UTC.