Object[] pointData = new Object[6];
pointData[0] = point.getOwner();
pointData[1] = point.getSchemaId();
pointData[2] = point.getSchemaVersion();
MetaData metaData = point.getMetaData();
if(metaData == null) {
pointData[3] = null;
pointData[4] = null;
}
else {
pointData[3] = metaData.getId();
pointData[4] =
ISOW3CDateTimeFormat
.any()
.print(metaData.getTimestamp());
}
pointData[5] = JSON_MAPPER.writeValueAsString(point.getData());
points.add(pointData);