Search in sources :

Example 1 with GremlinQueryResult

use of org.apache.atlas.query.GremlinQueryResult 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)

Example 2 with GremlinQueryResult

use of org.apache.atlas.query.GremlinQueryResult 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)2 InputLineageClosureQuery (org.apache.atlas.query.InputLineageClosureQuery)1 OutputLineageClosureQuery (org.apache.atlas.query.OutputLineageClosureQuery)1