Class Converter (0.7.0)

public class Converter

Utility class for converting between generic PostgreSQL conversions.

Inheritance

java.lang.Object > Converter

Static Methods

parseData(ResultSet result, int columnarIndex, ProxyServer.DataFormat format)

public static byte[] parseData(ResultSet result, int columnarIndex, ProxyServer.DataFormat format)

Return the data of the specified column of the ResultSet as a byte array. The column may not contain a null value.

Parameters
NameDescription
resultcom.google.cloud.spanner.ResultSet

The ResultSet to read the data from.

columnarIndexint

The columnar index.

formatProxyServer.DataFormat

The DataFormat format to use to encode the data.

Returns
TypeDescription
byte[]

a byte array containing the data in the specified format.