class HDFSPath extends AbstractNiFiProvenanceEventAnalyzer {

    @Override
    public DataSetRefs analyze(AnalysisContext context, ProvenanceEventRecord event) {
        final Referenceable ref = new Referenceable(TYPE);
        final URI uri = parseUri(event.getTransitUri());
        final String clusterName = context.getClusterResolver().fromHostNames(uri.getHost());
        final String path = uri.getPath();
        ref.set(ATTR_NAME, path);
        ref.set(ATTR_PATH, path);
        ref.set(ATTR_CLUSTER_NAME, clusterName);
        ref.set(ATTR_QUALIFIED_NAME, toQualifiedName(clusterName, path));

        return singleDataSetRef(event.getComponentId(), event.getEventType(), ref);
    }

}