@ GET @ Path ( "/{guid}" ) @ Consumes ( Servlets . JSON_MEDIA_TYPE ) @ Produces ( Servlets . JSON_MEDIA_TYPE ) public AtlasLineageInfo getLineageGraph ( @ PathParam ( "guid" ) String guid , @ QueryParam ( "direction" ) @ DefaultValue ( DEFAULT_DIRECTION ) LineageDirection direction , @ QueryParam ( "depth" ) @ DefaultValue ( DEFAULT_DEPTH ) int depth ) throws AtlasBaseException { AtlasPerfTracer perf = null ; try { if ( AtlasPerfTracer . isPerfTraceEnabled ( PERF_LOG ) ) { perf = AtlasPerfTracer . getPerfTracer ( PERF_LOG , "LineageREST.getLineageGraph(" + guid + "," + direction + "," + depth + ")" ) ; } return atlasLineageService . getAtlasLineageInfo ( guid , direction , depth ) ; } finally { AtlasPerfTracer . log ( perf ) ; } }
Returns lineage info about entity .