Class TimestampParser (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass TimestampParserextendsParser<Timestamp>Translate from wire protocol to timestamp.
Inherited Members
Static Methods
convertToPG(ResultSet resultSet, int position, ProxyServer.DataFormat format, ZoneId zoneId)
publicstaticbyte[]convertToPG(ResultSetresultSet,intposition,ProxyServer.DataFormatformat,ZoneIdzoneId)resultSet
com.google.cloud.spanner.ResultSetbyte[]
toTimestamp(byte[] data)
publicstaticTimestamptoTimestamp(byte[]data)Converts the binary data to a Timestamp.
com.google.cloud.Timestamp
toTimestamp(String value, ZoneId timezone)
publicstaticTimestamptoTimestamp(Stringvalue,ZoneIdtimezone)Converts the given string value to a Timestamp. The given timezone is used to determine the actual point in time if the timestamp string itself does not contain a timezone offset.
com.google.cloud.Timestamp
Methods
binaryParse()
protectedbyte[]binaryParse()Used to parse data type onto binary. Override this to change binary representation.
byte[]
bind(Statement.Builder statementBuilder, String name)
publicvoidbind(Statement.BuilderstatementBuilder,Stringname)statementBuilder
com.google.cloud.spanner.Statement.BuilderspannerParse()
protectedStringspannerParse()Used to parse data type onto spanner format. Override this to change spanner representation.
stringParse()
publicStringstringParse()Used to parse data type into string. Override this to change the string representation.