Or it’s only date format supported? So have to use .writeDate(“datefield”, new Date())?
From: Xu, Nan Sent: Friday, September 08, 2017 2:35 PM To: [email protected] Subject: [External email from [email protected]] pdxSerialzer use timestamp Hi, Using the PdxSerializer and need to save a timestamp. Because need micro/nano second precision, date is not an option. If I save it as object, it works. but from gfsh, I can not see actual value, only “class java.sql.Timestamp” is shown. How do I make it viewable in gfsh and able to query. Let’s say “select * from /test where xx_timestamp= 2017.10.10 05:04:03.123456” My PdxSerializer public boolean toData(Object o, PdxWriter writer) { writer.writeByteArray("data", entry.getData()) .writeInt("type", meta.getType().getNumber()) .writeInt("size", meta.getSize()) .writeObject("create_time", new java.sql.Timestamp(1234)) } Thanks a lot for help Nan ________________________________ This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message. ---------------------------------------------------------------------- This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.
