Search in sources :

Example 6 with AtlasExportRequest

use of org.apache.atlas.model.impexp.AtlasExportRequest in project incubator-atlas by apache.

the class ZipSinkTest method getDefaultExportResult.

private AtlasExportResult getDefaultExportResult() {
    AtlasExportRequest request = new AtlasExportRequest();
    List<AtlasObjectId> itemsToExport = new ArrayList<>();
    itemsToExport.add(new AtlasObjectId("hive_db", "qualifiedName", "default"));
    request.setItemsToExport(itemsToExport);
    defaultExportResult = new AtlasExportResult(request, "admin", "1.0.0.0", "root", 100);
    return defaultExportResult;
}
Also used : AtlasExportResult(org.apache.atlas.model.impexp.AtlasExportResult) AtlasExportRequest(org.apache.atlas.model.impexp.AtlasExportRequest) ArrayList(java.util.ArrayList) AtlasObjectId(org.apache.atlas.model.instance.AtlasObjectId)

Aggregations

AtlasExportRequest (org.apache.atlas.model.impexp.AtlasExportRequest)6 ArrayList (java.util.ArrayList)4 AtlasObjectId (org.apache.atlas.model.instance.AtlasObjectId)4 AtlasExportResult (org.apache.atlas.model.impexp.AtlasExportResult)2 Test (org.testng.annotations.Test)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1