Search in sources :

Example 1 with LineageTable

use of io.cdap.cdap.data2.metadata.lineage.LineageTable in project cdap by caskdata.

the class LineageAdminTest method cleanup.

@After
public void cleanup() throws Exception {
    deleteNamespace(NamespaceId.DEFAULT.getNamespace());
    TransactionRunner transactionRunner = getInjector().getInstance(TransactionRunner.class);
    TransactionRunners.run(transactionRunner, context -> {
        LineageTable table = LineageTable.create(context);
        table.deleteAll();
    });
}
Also used : LineageTable(io.cdap.cdap.data2.metadata.lineage.LineageTable) TransactionRunner(io.cdap.cdap.spi.data.transaction.TransactionRunner) After(org.junit.After)

Aggregations

LineageTable (io.cdap.cdap.data2.metadata.lineage.LineageTable)1 TransactionRunner (io.cdap.cdap.spi.data.transaction.TransactionRunner)1 After (org.junit.After)1