Skip to content

Commit

Permalink
feat(rawCreate): add rawCreate/rawCreateAsset methods to BaseRemoteWr…
Browse files Browse the repository at this point in the history
…iterDAO (#434)
  • Loading branch information
jsdonn authored Sep 23, 2024
1 parent 0d7727e commit bf2aa2e
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ abstract public <URN extends Urn> void createWithTracking(@Nonnull URN urn, @Non
@Nonnull IngestionTrackingContext trackingContext, @Nullable IngestionParams ingestionParams);


/**
* Same as {@link #createWithTracking(Urn, RecordTemplate, IngestionTrackingContext, IngestionParams)}
* but a raw create request, which skips any pre-, intra-, and post-ingestion updates.
* @param urn the {@link Urn} for the entity
* @param snapshot the snapshot 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 SNAPSHOT}
*/
abstract public <URN extends Urn> void rawCreate(@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
Expand All @@ -46,4 +58,15 @@ abstract public <URN extends Urn> void createWithTracking(@Nonnull URN urn, @Non
*/
abstract public <URN extends Urn> void createAsset(@Nonnull URN urn, @Nonnull RecordTemplate asset,
@Nullable IngestionParams ingestionParams);

/**
* Same as {@link #createAsset(Urn, RecordTemplate, IngestionParams)} but a raw create request,
* which skips any pre-, intra-, and post-ingestion updates.
* @param urn the {@link Urn} for the asset
* @param asset the asset containing updated metadata aspects
* @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 rawCreateAsset(@Nonnull URN urn, @Nonnull RecordTemplate asset,
@Nullable IngestionParams ingestionParams);
}

0 comments on commit bf2aa2e

Please sign in to comment.