Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class Converter (0.24.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.24.0keyboard_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 )
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-07-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[],[]]