use of io.cdap.cdap.data2.metadata.system.DelegateSystemMetadataWriter in project cdap by caskdata.
the class DatasetInstanceService method publishMetadata.
private void publishMetadata(DatasetId dataset, SystemMetadata metadata) {
if (metadata != null && !metadata.isEmpty()) {
SystemMetadataWriter metadataWriter = new DelegateSystemMetadataWriter(metadataServiceClient, dataset, metadata);
metadataWriter.write();
}
}
Aggregations