Class Converter (0.15.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass ConverterimplementsAutoCloseableUtility class for converting between generic PostgreSQL conversions.
Implements
AutoCloseableInherited Members
Static Methods
convertToPG(ResultSet result, int position, ProxyServer.DataFormat format, SessionState sessionState)
publicstaticbyte[]convertToPG(ResultSetresult,intposition,ProxyServer.DataFormatformat,SessionStatesessionState)Return the data of the specified column of the ResultSet as a byte array. The column may not contain a null value.
Name
Description
result
com.google.cloud.spanner.ResultSetThe ResultSet to read the data from.
Type
Description
byte[]
a byte array containing the data in the specified format.
Constructors
Converter(IntermediateStatement statement, ConnectionHandler.QueryMode mode, OptionsMetadata options, ResultSet resultSet)
publicConverter(IntermediateStatementstatement,ConnectionHandler.QueryModemode,OptionsMetadataoptions,ResultSetresultSet) Name
Description
resultSet
com.google.cloud.spanner.ResultSetMethods
close()
publicvoidclose() Type
Description
convertResultSetRowToDataRowResponse()
publicintconvertResultSetRowToDataRowResponse() Type
Description
Exceptions
Type
Description
getResultSet()
publicResultSetgetResultSet() Type
Description
com.google.cloud.spanner.ResultSet
writeBuffer(DataOutputStream outputStream)
publicvoidwriteBuffer(DataOutputStreamoutputStream) Name
Description
Exceptions
Type
Description