public interface ProvenanceEventRepository
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the repository, freeing any resources
|
ProvenanceEventBuilder |
eventBuilder()
Returns a
ProvenanceEventBuilder that is capable of building
ProvenanceEventRecord s |
ProvenanceEventRecord |
getEvent(long id) |
List<ProvenanceEventRecord> |
getEvents(long firstRecordId,
int maxRecords)
Returns a List of all
ProvenanceEventRecord s in the
repository starting with the given ID. |
Long |
getMaxEventId() |
List<SearchableField> |
getSearchableAttributes() |
List<SearchableField> |
getSearchableFields() |
void |
initialize(EventReporter eventReporter)
Performs any initialization needed.
|
void |
registerEvent(ProvenanceEventRecord event)
Adds the given event to the repository and returns a new event for which
the event id has been populated.
|
void |
registerEvents(Iterable<ProvenanceEventRecord> events)
Adds the given events to the repository.
|
ComputeLineageSubmission |
retrieveLineageSubmission(String lineageIdentifier) |
QuerySubmission |
retrieveQuerySubmission(String queryIdentifier) |
ComputeLineageSubmission |
submitExpandChildren(long eventId)
Submits a request to expand the children of the event with the given id
|
ComputeLineageSubmission |
submitExpandParents(long eventId)
Submits a request to expand the parents of the event with the given id
|
ComputeLineageSubmission |
submitLineageComputation(String flowFileUuid)
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)
Submits an asynchronous request to process the given query, returning an
identifier that can be used to fetch the results at a later time
|
void initialize(EventReporter eventReporter) throws IOException
eventReporter
- to report toIOException
- if unable to initializeProvenanceEventBuilder eventBuilder()
ProvenanceEventBuilder
that is capable of building
ProvenanceEventRecord
svoid registerEvent(ProvenanceEventRecord event)
event
- to registervoid registerEvents(Iterable<ProvenanceEventRecord> events)
This interface makes no assumptions about whether or not the registration of the Collection are atomic. This detail is implementation-specific.
events
- to registerList<ProvenanceEventRecord> getEvents(long firstRecordId, int maxRecords) throws IOException
ProvenanceEventRecord
s in the
repository starting with the given ID. The first ID in the repository
will always be 0 or higher.firstRecordId
- id of the first record to retrievemaxRecords
- maximum number of records to retrieveIOException
- if error reading from repositoryLong getMaxEventId()
QuerySubmission submitQuery(Query query)
query
- to submitQuerySubmission retrieveQuerySubmission(String queryIdentifier)
queryIdentifier
- of the querynull
ComputeLineageSubmission submitLineageComputation(String flowFileUuid)
flowFileUuid
- the UUID of the FlowFile for which the Lineage should
be calculatedComputeLineageSubmission
object that can be used to
check if the computing is complete and if so get the resultsComputeLineageSubmission retrieveLineageSubmission(String lineageIdentifier)
lineageIdentifier
- identifier of lineage to computeComputeLineageSubmission
associated with the given
identifierProvenanceEventRecord getEvent(long id) throws IOException
id
- to lookupnull
otherwiseIOException
- if failure while retrieving eventComputeLineageSubmission submitExpandParents(long eventId)
eventId
- the one-up id of the Event to expandIllegalArgumentException
- 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)
eventId
- the one-up id of the EventIllegalArgumentException
- if the given identifier identifies a
Provenance Event that has a Type that is not expandable or if the
identifier cannot be foundvoid close() throws IOException
IOException
- if failure closing repositoryList<SearchableField> getSearchableFields()
#submitQuery(nifi.provenance.search.Query)
methodList<SearchableField> getSearchableAttributes()
#submitQuery(nifi.provenance.search.Query)
methodCopyright © 2015 Apache NiFi Project. All rights reserved.