Class CopyToStatement (0.18.2)

public class CopyToStatement extends IntermediatePortalStatement

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.

Static Fields

COPY_BINARY_HEADER

public static final byte[] COPY_BINARY_HEADER
Field Value
TypeDescription
byte[]

Constructors

CopyToStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, CopyStatement.ParsedCopyStatement parsedCopyStatement)

public CopyToStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, CopyStatement.ParsedCopyStatement parsedCopyStatement)
Parameters
NameDescription
connectionHandlerConnectionHandler
optionsOptionsMetadata
nameString
parsedCopyStatementcom.google.cloud.spanner.pgadapter.statements.CopyStatement.ParsedCopyStatement

Methods

containsResultSet()

public boolean containsResultSet()
Returns
TypeDescription
boolean
Overrides

createDataRowResponse(Converter converter)

public CopyDataResponse createDataRowResponse(Converter converter)
Parameter
NameDescription
converterConverter
Returns
TypeDescription
CopyDataResponse
Overrides

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

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

Creates a portal from this statement.

Parameters
NameDescription
nameString
parametersbyte[][]
parameterFormatCodesList<Short>
resultFormatCodesList<Short>
Returns
TypeDescription
IntermediatePortalStatement
Overrides

createResultPrefix(ResultSet resultSet)

public WireOutput[] createResultPrefix(ResultSet resultSet)
Parameter
NameDescription
resultSetcom.google.cloud.spanner.ResultSet
Returns
TypeDescription
WireOutput[]
Overrides

createResultSuffix()

public WireOutput[] createResultSuffix()
Returns
TypeDescription
WireOutput[]
Overrides

describeAsync(BackendConnection backendConnection)

public Future<StatementResult> describeAsync(BackendConnection backendConnection)
Parameter
NameDescription
backendConnectionBackendConnection
Returns
TypeDescription
Future<StatementResult>
Overrides

executeAsync(BackendConnection backendConnection)

public void executeAsync(BackendConnection backendConnection)
Parameter
NameDescription
backendConnectionBackendConnection
Overrides

getCommandTag()

public String getCommandTag()
Returns
TypeDescription
String
Overrides

getStatementType()

public AbstractStatementParser.StatementType getStatementType()
Returns
TypeDescription
StatementType
Overrides

isBinary()

public boolean isBinary()
Returns
TypeDescription
boolean