Search in sources :

Example 1 with DelegateSystemMetadataWriter

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();
    }
}
Also used : DelegateSystemMetadataWriter(io.cdap.cdap.data2.metadata.system.DelegateSystemMetadataWriter) SystemMetadataWriter(io.cdap.cdap.data2.metadata.system.SystemMetadataWriter) DelegateSystemMetadataWriter(io.cdap.cdap.data2.metadata.system.DelegateSystemMetadataWriter)

Aggregations

DelegateSystemMetadataWriter (io.cdap.cdap.data2.metadata.system.DelegateSystemMetadataWriter)1 SystemMetadataWriter (io.cdap.cdap.data2.metadata.system.SystemMetadataWriter)1