public interface ProvenanceRepository extends ProvenanceEventRepository
| Modifier and Type | Method and Description |
|---|---|
ProvenanceEventRecord |
getEvent(long id,
NiFiUser user) |
List<ProvenanceEventRecord> |
getEvents(long firstRecordId,
int maxRecords,
NiFiUser user)
Returns a List of all
ProvenanceEventRecords in the
repository starting with the given ID. |
ProvenanceEventRepository |
getProvenanceEventRepository() |
List<SearchableField> |
getSearchableAttributes() |
List<SearchableField> |
getSearchableFields() |
void |
initialize(EventReporter eventReporter,
Authorizer authorizer,
ProvenanceAuthorizableFactory resourceFactory)
Performs any initialization needed.
|
ComputeLineageSubmission |
retrieveLineageSubmission(String lineageIdentifier,
NiFiUser user) |
QuerySubmission |
retrieveQuerySubmission(String queryIdentifier,
NiFiUser user) |
ComputeLineageSubmission |
submitExpandChildren(long eventId,
NiFiUser user)
Submits a request to expand the children of the event with the given id.
|
ComputeLineageSubmission |
submitExpandParents(long eventId,
NiFiUser user)
Submits a request to expand the parents of the event with the given id.
|
ComputeLineageSubmission |
submitLineageComputation(long eventId,
NiFiUser user)
Submits a Lineage Computation to be completed and returns the
AsynchronousLineageResult that indicates the status of the request and
the results, if the computation is complete.
|
ComputeLineageSubmission |
submitLineageComputation(String flowFileUuid,
NiFiUser user)
Submits a Lineage Computation to be completed and returns the
AsynchronousLineageResult that indicates the status of the request and
the results, if the computation is complete.
|
QuerySubmission |
submitQuery(Query query,
NiFiUser user)
Submits an asynchronous request to process the given query, returning an
identifier that can be used to fetch the results at a later time
|
close, eventBuilder, getEvent, getEvents, getMaxEventId, registerEvent, registerEventsvoid initialize(EventReporter eventReporter, Authorizer authorizer, ProvenanceAuthorizableFactory resourceFactory) throws IOException
eventReporter - to report toauthorizer - the authorizer to use for authorizing individual eventsresourceFactory - the resource factory to use for generating Provenance Resource objects for authorization purposesIOException - if unable to initializeProvenanceEventRecord getEvent(long id, NiFiUser user) throws IOException
IOExceptionList<ProvenanceEventRecord> getEvents(long firstRecordId, int maxRecords, NiFiUser user) throws IOException
ProvenanceEventRecords in the
repository starting with the given ID. The first ID in the repository
will always be 0 or higher. Each event that is found will be authorized
against the given NiFiUser. If the user does not have authorization for
the event, the event will not be returned.firstRecordId - id of the first record to retrievemaxRecords - maximum number of records to retrieveuser - the NiFi user that the events should be authorized againstIOException - if error reading from repositoryProvenanceEventRepository getProvenanceEventRepository()
ProvenanceEventRepository backing this ProvenanceRepositoryQuerySubmission submitQuery(Query query, NiFiUser user)
query - to submituser - the NiFi User to authorize the events againstQuerySubmission retrieveQuerySubmission(String queryIdentifier, NiFiUser user)
queryIdentifier - of the queryuser - the user who is retrieving the querynullComputeLineageSubmission submitLineageComputation(String flowFileUuid, NiFiUser user)
flowFileUuid - the UUID of the FlowFile for which the Lineage should
be calculateduser - the NiFi User to authorize events againstComputeLineageSubmission object that can be used to
check if the computing is complete and if so get the resultsComputeLineageSubmission submitLineageComputation(long eventId, NiFiUser user)
submitLineageComputation(String, NiFiUser) because
it is much more efficient, but the former may be used if a particular Event ID is not
available.eventId - the numeric ID of the event that the lineage is foruser - the NiFi User to authorize events againstComputeLineageSubmission object that can be used to
check if the computing is complete and if so get the resultsComputeLineageSubmission retrieveLineageSubmission(String lineageIdentifier, NiFiUser user)
lineageIdentifier - identifier of lineage to computeuser - the user who is retrieving the lineage submissionComputeLineageSubmission associated with the given
identifierComputeLineageSubmission submitExpandParents(long eventId, NiFiUser user)
eventId - the one-up id of the Event to expanduser - the NiFi user to authorize events againstIllegalArgumentException - if the given identifier identifies a
Provenance Event that has a Type that is not expandable or if the
identifier cannot be foundComputeLineageSubmission submitExpandChildren(long eventId, NiFiUser user)
eventId - the one-up id of the Eventuser - the NiFi user to authorize events againstIllegalArgumentException - if the given identifier identifies a
Provenance Event that has a Type that is not expandable or if the
identifier cannot be foundList<SearchableField> getSearchableFields()
submitQuery(Query, NiFiUser) methodList<SearchableField> getSearchableAttributes()
submitQuery(Query, NiFiUser) methodCopyright © 2016 Apache NiFi Project. All rights reserved.