Class CopyDataResponse (0.14.1)

publicclass CopyDataResponseextendsWireOutput

Inheritance

java.lang.Object > WireOutput > CopyDataResponse

Static Methods

createBinaryHeader(DataOutputStream output)

publicstaticCopyDataResponsecreateBinaryHeader(DataOutputStreamoutput)

Creates a CopyDataResponse message containing the fixed binary COPY header.

Parameter
Name Description
Returns
Type Description

createBinaryTrailer(DataOutputStream output)

publicstaticCopyDataResponsecreateBinaryTrailer(DataOutputStreamoutput)

Creates a CopyDataResponse message containing the fixed binary COPY trailer.

Parameter
Name Description
Returns
Type Description

Constructors

CopyDataResponse(DataOutputStream output, Converter converter)

publicCopyDataResponse(DataOutputStreamoutput,Converterconverter)
Parameters
Name Description
converter Converter

CopyDataResponse(DataOutputStream output, String data, char rowTerminator)

publicCopyDataResponse(DataOutputStreamoutput,Stringdata,charrowTerminator)
Parameters
Name Description
data String
rowTerminator char

Methods

getIdentifier()

publicbytegetIdentifier()

Override this to specify the byte which represents the protocol for the specific message. Used for logging and by send.

Returns
Type Description
Overrides

getMessageName()

protectedStringgetMessageName()

Used for logging.

Returns
Type Description
Overrides

getPayloadString()

protectedStringgetPayloadString()

Used for logging.

Returns
Type Description
Overrides

send(boolean flush)

publicvoidsend(booleanflush)

Same as #send(), but with the option to skip the flush at the end. This is more efficient for responses that contain multiple parts, such as query results.

Parameter
Name Description
flush boolean
Overrides Exceptions
Type Description

sendPayload()

protectedvoidsendPayload()

Override this method to include post-processing and metadata in the sending process. Template method for send.

Overrides Exceptions
Type Description

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.