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)
Retrieves the Provenance Event with the given 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() |
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.
|
ProvenanceEventBuilder 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. This method performs no authorization of
the events.firstRecordId
- id of the first record to retrievemaxRecords
- maximum number of records to retrieveIOException
- if error reading from repositoryLong getMaxEventId()
ProvenanceEventRecord getEvent(long id) throws IOException
id
- to lookupnull
otherwiseIOException
- if failure while retrieving eventvoid close() throws IOException
IOException
- if failure closing repositoryCopyright © 2023 Apache NiFi Project. All rights reserved.