Class CopyDataResponse (0.18.2)

public class CopyDataResponse extends WireOutput

Inheritance

java.lang.Object > WireOutput > CopyDataResponse

Static Methods

createBinaryTrailer(DataOutputStream output, boolean includeHeader)

public static CopyDataResponse createBinaryTrailer(DataOutputStream output, boolean includeHeader)

Creates a CopyDataResponse message containing the fixed binary COPY trailer.

Parameters
NameDescription
outputDataOutputStream
includeHeaderboolean
Returns
TypeDescription
CopyDataResponse

Constructors

CopyDataResponse(DataOutputStream output, Converter converter)

public CopyDataResponse(DataOutputStream output, Converter converter)
Parameters
NameDescription
outputDataOutputStream
converterConverter

CopyDataResponse(DataOutputStream output, String data, char rowTerminator)

public CopyDataResponse(DataOutputStream output, String data, char rowTerminator)
Parameters
NameDescription
outputDataOutputStream
dataString
rowTerminatorchar

Methods

getIdentifier()

public byte getIdentifier()

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

Returns
TypeDescription
byte
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

send(boolean flush)

public void send(boolean flush)

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
NameDescription
flushboolean
Overrides Exceptions
TypeDescription
Exception

sendPayload()

protected void sendPayload()

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

Overrides Exceptions
TypeDescription
Exception