s_logger.warn("Snapshot does not contain any Yield Curve Snapshots.");
return;
}
for (Map.Entry<YieldCurveKey, YieldCurveSnapshot> entry : yieldCurves.entrySet()) {
YieldCurveSnapshot curve = entry.getValue();
Map<String, String> tempRow = new HashMap<>();
tempRow.put(SnapshotColumns.TYPE.get(), SnapshotType.YIELD_CURVE.get());
tempRow.put(SnapshotColumns.NAME.get(), entry.getKey().getName());
tempRow.put(SnapshotColumns.YIELD_CURVE_CURRENCY.get(), entry.getKey().getCurrency().toString());
tempRow.put(SnapshotColumns.INSTANT.get(), curve.getValuationTime().toString());
//Row written via writeUnstructuredMarketDataSnapshot
writeUnstructuredMarketDataSnapshot(tempRow, curve.getValues());
}
}