Deleting Interactions: Example 03

An Reltio Data Science example showing delete interactions.

The following code sample shows how to delete and ID from a dataset:

val deleteId = af_framework.dataDelete
  .withBuilder(
    new DeleteInteractionBuilder()
      .fromDataFrame(deleteIn)
      .idColumn("Id")
      .ofType("configuration/interactionTypes/ExhibitionEvent")
  )
  .build
  .deleteAndGetJobId()

In this example, .deleteAndGetJobId() starts the job and returns jobId; deleteId is the ID of the job on EMR.