Class Converter (0.23.1)
Stay organized with collections
Save and categorize content based on your preferences.
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 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}