Mongodb Reactivemongo BSONTimestamp转换

Mongodb Reactivemongo BSONTimestamp转换,mongodb,scala,reactivemongo,Mongodb,Scala,Reactivemongo,我在mongodb中有一条记录有ts:Timestamp(1437688345,2)。当reactivemongo在scala应用程序中检索此记录时,它包含ts:BSONTimestamp(6174824423615365122) 在这种情况下,如何在数据库中查询时间戳大于ts:timestamp(1437688345,2)的所有文档?timestamp(1437688345,2)是内部表示,具有唯一的顺序。使用.getTime从中获取时间值,然后您可以使用创建有意义的BSONTimestamp

我在mongodb中有一条记录有
ts:Timestamp(1437688345,2)
。当reactivemongo在scala应用程序中检索此记录时,它包含
ts:BSONTimestamp(6174824423615365122)


在这种情况下,如何在数据库中查询时间戳大于
ts:timestamp(1437688345,2)
的所有文档?

timestamp(1437688345,2)
是内部表示,具有唯一的顺序。使用
.getTime
从中获取时间值,然后您可以使用创建有意义的
BSONTimestamp
。@cchantep Agree。但是,我想了解reactivemongo如何将
时间戳(1437688345,2)
转换为
BSONTimestamp(6174824423615365122)
。我已经能够通过做
6174824423615365122>>32=1437688345
时间戳(1437688345,2)
是内部表示,带有唯一的序号。使用
.getTime
从中获取时间值,然后您可以使用创建有意义的
BSONTimestamp
。@cchantep Agree。但是,我想了解reactivemongo如何将
时间戳(1437688345,2)
转换为
BSONTimestamp(6174824423615365122)
。通过执行
6174824423615365122>>32=1437688345