Class StringParser (0.27.1)

publicclassStringParserextendsParser<String>

Translate from wire protocol to string.

Inheritance

Object > Parser > StringParser

Static Methods

binaryParse(ResultSet resultSet, int position)

publicstaticbyte[]binaryParse(ResultSetresultSet,intposition)
Parameters
NameDescription
resultSetcom.google.cloud.spanner.ResultSet
positionint
Returns
TypeDescription
byte[]

convertToPG(ResultSet resultSet, int position)

publicstaticbyte[]convertToPG(ResultSetresultSet,intposition)
Parameters
NameDescription
resultSetcom.google.cloud.spanner.ResultSet
positionint
Returns
TypeDescription
byte[]

toString(byte[] data)

publicstaticStringtoString(byte[]data)

Converts the binary data to an UTF8 string.

Parameter
NameDescription
databyte[]
Returns
TypeDescription
String

Methods

binaryParse()

protectedbyte[]binaryParse()

Used to parse data type onto binary. Override this to change binary representation.

Returns
TypeDescription
byte[]
Overrides

bind(Statement.Builder statementBuilder, String name)

publicvoidbind(Statement.BuilderstatementBuilder,Stringname)
Parameters
NameDescription
statementBuildercom.google.cloud.spanner.Statement.Builder
nameString
Overrides

stringParse()

publicStringstringParse()

Used to parse data type into string. Override this to change the string representation.

Returns
TypeDescription
String
Overrides