Send feedback
Class Converter (0.18.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.18.4 keyboard_arrow_down
public class Converter implements AutoCloseable
Utility class for converting between generic PostgreSQL conversions.
Static Methods
public static byte [] convertToPG ( ResultSet result , int position , ProxyServer . DataFormat format , SessionState sessionState )
Return the data of the specified column of the ResultSet as a byte array. The column
may not contain a null value.
Parameters Name Description result
com.google.cloud.spanner.ResultSet
The ResultSet to read the data from.
position
int
The column index.
format
ProxyServer.DataFormat
The DataFormat format to use to encode the data.
sessionState
SessionState
Returns Type Description byte []
a byte array containing the data in the specified format.
Constructors
public Converter ( IntermediateStatement statement , ConnectionHandler . QueryMode mode , OptionsMetadata options , ResultSet resultSet , boolean includeBinaryCopyHeaderInFirstRow )
Methods
close()
convertResultSetRowToDataRowResponse()
public int convertResultSetRowToDataRowResponse ()
Returns Type Description int
getResultSet()
public ResultSet getResultSet ()
Returns Type Description com.google.cloud.spanner.ResultSet
public Converter includeBinaryCopyHeader ()
public boolean isIncludeBinaryCopyHeaderInFirstRow ()
writeBuffer(DataOutputStream outputStream)
public void writeBuffer ( DataOutputStream outputStream )
Send feedback
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 2024-12-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]