Skip to content

Commit

Permalink
add create asset to remote write DAO (#403)
Browse files Browse the repository at this point in the history
Co-authored-by: Yang Yang <[email protected]>
  • Loading branch information
yangyangv2 and Yang Yang authored Aug 28, 2024
1 parent fccedcf commit 408b184
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,16 @@ public abstract class BaseRemoteWriterDAO {
*/
abstract public <URN extends Urn> void createWithTracking(@Nonnull URN urn, @Nonnull RecordTemplate snapshot,
@Nonnull IngestionTrackingContext trackingContext, @Nullable IngestionParams ingestionParams);


/**
* Same as {@link #createWithTracking(Urn, RecordTemplate, IngestionTrackingContext, IngestionParams)} but create Assets instead.
* @param urn the {@link Urn} for the asset
* @param asset the asset containing updated metadata aspects
* @param trackingContext {@link IngestionTrackingContext} to use for DAO tracking probes and to pass on to the MAE
* @param ingestionParams {@link IngestionParams} which indicates how the aspect should be ingested
* @param <URN> must be the entity URN type in {@code ASSET}
*/
abstract public <URN extends Urn> void createAsset(@Nonnull URN urn, @Nonnull RecordTemplate asset,
@Nonnull IngestionTrackingContext trackingContext, @Nullable IngestionParams ingestionParams);
}

0 comments on commit 408b184

Please sign in to comment.