Search in sources :

Example 1 with InputLineageClosureQuery

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

the class DataSetLineageService method getInputsGraphForId.

private String getInputsGraphForId(String guid) {
    InputLineageClosureQuery inputsQuery = new InputLineageClosureQuery(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 = inputsQuery.evaluate();
    return inputsQuery.graph(result).toInstanceJson();
}
Also used : InputLineageClosureQuery(org.apache.atlas.query.InputLineageClosureQuery) GremlinQueryResult(org.apache.atlas.query.GremlinQueryResult)

Aggregations

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