Search in sources :

Example 1 with OutputLineageClosureQuery

use of org.apache.atlas.query.OutputLineageClosureQuery in project incubator-atlas by apache.

the class DataSetLineageService method getOutputsGraphForId.

private String getOutputsGraphForId(String guid) {
    OutputLineageClosureQuery outputsQuery = new OutputLineageClosureQuery(AtlasClient.DATA_SET_SUPER_TYPE, SELECT_INSTANCE_GUID, guid, HIVE_PROCESS_TYPE_NAME, HIVE_PROCESS_INPUT_ATTRIBUTE_NAME, HIVE_PROCESS_OUTPUT_ATTRIBUTE_NAME, Option.empty(), SELECT_ATTRIBUTES, true, graphPersistenceStrategy, graph);
    GremlinQueryResult result = outputsQuery.evaluate();
    return outputsQuery.graph(result).toInstanceJson();
}
Also used : OutputLineageClosureQuery(org.apache.atlas.query.OutputLineageClosureQuery) GremlinQueryResult(org.apache.atlas.query.GremlinQueryResult)

Aggregations

GremlinQueryResult (org.apache.atlas.query.GremlinQueryResult)1 OutputLineageClosureQuery (org.apache.atlas.query.OutputLineageClosureQuery)1