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.
Inheritance
java.lang.Object > IntermediateStatement > IntermediatePreparedStatement > IntermediatePortalStatement > CopyToStatementStatic Fields
COPY_BINARY_HEADER
public static final byte[] COPY_BINARY_HEADER
Type | Description |
byte[] |
Constructors
CopyToStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, CopyStatement.ParsedCopyStatement parsedCopyStatement)
public CopyToStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, CopyStatement.ParsedCopyStatement parsedCopyStatement)
Name | Description |
connectionHandler | ConnectionHandler |
options | OptionsMetadata |
name | String |
parsedCopyStatement | com.google.cloud.spanner.pgadapter.statements.CopyStatement.ParsedCopyStatement |
Methods
containsResultSet()
public boolean containsResultSet()
Type | Description |
boolean |
createDataRowResponse(Converter converter)
public CopyDataResponse createDataRowResponse(Converter converter)
Name | Description |
converter | Converter |
Type | Description |
CopyDataResponse |
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.
Name | Description |
name | String |
parameters | byte[][] |
parameterFormatCodes | List<Short> |
resultFormatCodes | List<Short> |
Type | Description |
IntermediatePortalStatement |
createResultPrefix(ResultSet resultSet)
public WireOutput[] createResultPrefix(ResultSet resultSet)
Name | Description |
resultSet | com.google.cloud.spanner.ResultSet |
Type | Description |
WireOutput[] |
createResultSuffix()
public WireOutput[] createResultSuffix()
Type | Description |
WireOutput[] |
describeAsync(BackendConnection backendConnection)
public Future<StatementResult> describeAsync(BackendConnection backendConnection)
Name | Description |
backendConnection | BackendConnection |
Type | Description |
Future<StatementResult> |
executeAsync(BackendConnection backendConnection)
public void executeAsync(BackendConnection backendConnection)
Name | Description |
backendConnection | BackendConnection |
getCommandTag()
public String getCommandTag()
Type | Description |
String |
getStatementType()
public AbstractStatementParser.StatementType getStatementType()
Type | Description |
StatementType |
isBinary()
public boolean isBinary()
Type | Description |
boolean |