Class CopyToStatement (0.18.4)

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, CopyStatement.ParsedCopyStatement parsedCopyStatement)

publicCopyToStatement(ConnectionHandlerconnectionHandler,OptionsMetadataoptions,Stringname,CopyStatement.ParsedCopyStatementparsedCopyStatement)
Parameters
Name Description
connectionHandler ConnectionHandler
options OptionsMetadata
name String
parsedCopyStatement com.google.cloud.spanner.pgadapter.statements.CopyStatement.ParsedCopyStatement

Methods

containsResultSet()

publicbooleancontainsResultSet()
Returns
Type Description
boolean
Overrides

createDataRowResponse(Converter converter)

publicCopyDataResponsecreateDataRowResponse(Converterconverter)
Parameter
Name Description
converter Converter
Returns
Type Description
CopyDataResponse
Overrides

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

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

Creates a portal from this statement.

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

createResultPrefix(ResultSet resultSet)

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

createResultSuffix()

publicWireOutput[]createResultSuffix()
Returns
Type Description
WireOutput[]
Overrides

describeAsync(BackendConnection backendConnection)

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

executeAsync(BackendConnection backendConnection)

publicvoidexecuteAsync(BackendConnectionbackendConnection)
Parameter
Name Description
backendConnection BackendConnection
Overrides

getCommandTag()

publicStringgetCommandTag()
Returns
Type Description
String
Overrides

getStatementType()

publicAbstractStatementParser.StatementTypegetStatementType()
Returns
Type Description
StatementType
Overrides

isBinary()

publicbooleanisBinary()
Returns
Type Description
boolean

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.