Class CopyToStatement (0.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass CopyToStatementextendsIntermediatePortalStatementCopyStatement 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.
Inheritance
java.lang.Object > IntermediateStatement > IntermediatePreparedStatement > IntermediatePortalStatement > CopyToStatementInherited Members
Static Fields
COPY_BINARY_HEADER
publicstaticfinalbyte[]COPY_BINARY_HEADER Type
Description
byte[]
Constructors
CopyToStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, CopyTreeParser.CopyOptions copyOptions)
publicCopyToStatement(ConnectionHandlerconnectionHandler,OptionsMetadataoptions,Stringname,CopyTreeParser.CopyOptionscopyOptions) Name
Description
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.
Name
Description
Returns
Type
Description
Overrides
containsResultSet()
publicbooleancontainsResultSet() Type
Description
Overrides
createDataRowResponse(ResultSet resultSet, ConnectionHandler.QueryMode mode)
publicCopyDataResponsecreateDataRowResponse(ResultSetresultSet,ConnectionHandler.QueryModemode) Name
Description
resultSet
Returns
com.google.cloud.spanner.ResultSet Type
Description
Overrides
createResultPrefix(ResultSet resultSet)
publicWireOutput[]createResultPrefix(ResultSetresultSet) Name
Description
resultSet
Returns
com.google.cloud.spanner.ResultSet Type
Description
Overrides
createResultSuffix()
publicWireOutput[]createResultSuffix() Type
Description
Overrides
describeAsync(BackendConnection backendConnection)
publicFuture<DescribePortalMetadata>describeAsync(BackendConnectionbackendConnection) Name
Description
Returns
Type
Description
Overrides
executeAsync(BackendConnection backendConnection)
publicvoidexecuteAsync(BackendConnectionbackendConnection) Name
Description
Overrides
getCommandTag()
publicStringgetCommandTag() Type
Description
Overrides
getStatementType()
publicAbstractStatementParser.StatementTypegetStatementType() Type
Description
Overrides