@Override public String toString() { return "Timestamp{" + "value=" + getValue() + ", seconds=" + getTime() + ", inc=" + getInc() + '}'; }
@Override public void doWriteTimestamp(final BsonTimestamp value) { bsonOutput.writeByte(BsonType.TIMESTAMP.getValue()); writeCurrentName(); bsonOutput.writeInt64(value.getValue()); }
ChangeStreamDocument<Document> doc = iterator.next(); Map<String, Object> obj = new HashMap<>(); obj.put("clusterTime", doc.getClusterTime().getValue()); if (doc.getDocumentKey() != null) { obj.put("documentKey", new MorphiumId(((BsonObjectId) doc.getDocumentKey().get("_id")).getValue().toByteArray()));