Class CopyDataResponse (0.6.0)

public class CopyDataResponse extends WireOutput

Inheritance

java.lang.Object > WireOutput > CopyDataResponse

Static Methods

createBinaryHeader(DataOutputStream output)

public static CopyDataResponse createBinaryHeader(DataOutputStream output)

Creates a CopyDataResponse message containing the fixed binary COPY header.

Parameter
NameDescription
outputDataOutputStream
Returns
TypeDescription
CopyDataResponse

createBinaryTrailer(DataOutputStream output)

public static CopyDataResponse createBinaryTrailer(DataOutputStream output)

Creates a CopyDataResponse message containing the fixed binary COPY trailer.

Parameter
NameDescription
outputDataOutputStream
Returns
TypeDescription
CopyDataResponse

Constructors

CopyDataResponse(DataOutputStream output, int length, byte[][] data)

public CopyDataResponse(DataOutputStream output, int length, byte[][] data)
Parameters
NameDescription
outputDataOutputStream
lengthint
databyte[][]

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

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