Class CopyDataResponse (0.14.1)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass CopyDataResponseextendsWireOutputInherited Members
Static Methods
createBinaryHeader(DataOutputStream output)
publicstaticCopyDataResponsecreateBinaryHeader(DataOutputStreamoutput)Creates a CopyDataResponse message containing the fixed binary COPY header.
createBinaryTrailer(DataOutputStream output)
publicstaticCopyDataResponsecreateBinaryTrailer(DataOutputStreamoutput)Creates a CopyDataResponse message containing the fixed binary COPY trailer.
Constructors
CopyDataResponse(DataOutputStream output, Converter converter)
publicCopyDataResponse(DataOutputStreamoutput,Converterconverter)CopyDataResponse(DataOutputStream output, String data, char rowTerminator)
publicCopyDataResponse(DataOutputStreamoutput,Stringdata,charrowTerminator)Methods
getIdentifier()
publicbytegetIdentifier()Override this to specify the byte which represents the protocol for the specific message. Used for logging and by send.
getMessageName()
protectedStringgetMessageName()Used for logging.
getPayloadString()
protectedStringgetPayloadString()Used for logging.
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.
sendPayload()
protectedvoidsendPayload()Override this method to include post-processing and metadata in the sending process. Template method for send.